sails-auth
Version:
Passport-based User Authentication system for sails.js applications.
13 lines (10 loc) • 410 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'
};