Created route mapping and dynamic route loading. Endpoint functions need to be without next();