Separate server and routes in modules