Adds route for short url and implements controller function