sails-auth
Version:
Passport-based User Authentication system for sails.js applications.
12 lines (9 loc) • 396 B
JavaScript
module.exports.routes = {
'post /register': 'UserController.create',
'get /logout': 'AuthController.logout',
'post /auth/local': 'AuthController.callback',
'post /auth/local/:action': 'AuthController.callback',
'get /auth/:provider': 'AuthController.provider',
'get /auth/:provider/callback': 'AuthController.callback',
'get /auth/:provider/:action': 'AuthController.callback'
};