Skip to content

Instantly share code, notes, and snippets.

@JustinDFuller
Created July 21, 2019 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinDFuller/31669aaf6c7b1faa869b73934d7d755d to your computer and use it in GitHub Desktop.
Save JustinDFuller/31669aaf6c7b1faa869b73934d7d755d to your computer and use it in GitHub Desktop.
Route Handlers
import { controllers } from './controllers'
export const routes = {
user: {
async get(request, response) {
response.json(await controllers.user.get(request.query))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment