Small router middleware to handle requests (similar to expresses)