Small router middleware to handle requests (similar to express)