add GET/POST methods and route for shortener