router: added support for sub routes
fixed the file path in server.js