finally understanding node module pattern
api route defined in module