Created
April 10, 2016 16:41
-
-
Save vdeturckheim/5d0d0f049aad48cdffc9b87690178a37 to your computer and use it in GitHub Desktop.
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
'use strict'; | |
const AuthController = require('./api/auth'); | |
const UserController = require('./api/user'); | |
module.exports.routes = [ | |
// auth | |
{ method: ['GET', 'POST'], path: '/login', config: AuthController.login }, | |
{ method: 'GET', path: '/logout', config: AuthController.logout }, | |
{ method: 'GET', path: '/users/me', config: UserController.me }, | |
{ method: 'GET', path: '/users/translate/{username}', config: UserController.translate }, | |
{ method: 'GET', path: '/users/{userId}', config: UserController.read } | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment