Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created April 10, 2016 16:41
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 vdeturckheim/5d0d0f049aad48cdffc9b87690178a37 to your computer and use it in GitHub Desktop.
Save vdeturckheim/5d0d0f049aad48cdffc9b87690178a37 to your computer and use it in GitHub Desktop.
'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