Created
July 21, 2019 00:39
-
-
Save JustinDFuller/31669aaf6c7b1faa869b73934d7d755d to your computer and use it in GitHub Desktop.
Route Handlers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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