Support for routes with extension and hijacking the require method