bug(API): routing logic should be done after request mw

Routing logic should be done after the execution of request middleware. The execution of request middleware could
change the path, method, etc... They should be aware of routing logic
yes