Refactored the routers match route function - removed switch statement and only allow request methods from the allowed methods array