lib/routes.js
module.exports = [
{
method: 'POST',
path: '/auth/local/{action}',
handler: 'AuthController.callback'
},
{
method: 'POST',
path: '/auth/local/register',
handler: 'AuthController.register'
},
{
method: 'POST',
path: '/auth/local',
handler: 'AuthController.login'
},
{
method: 'GET',
path: '/auth/{provider}/callback',
handler: 'AuthController.callback'
}, {
method: 'GET',
path: '/auth/{provider}/callback',
handler: 'AuthController.callback'
}, {
method: 'GET',
path: '/auth/{provider}/{action}',
handler: 'AuthController.callback'
},
{
method: 'GET',
path: '/auth/{provider}',
handler: 'AuthController.provider'
},
{
method: 'GET',
path: '/auth/{provider}/connect',
handler: 'AuthController.connect'
},
{
method: 'GET',
path: '/auth/{provider}/disconnect',
handler: 'AuthController.disconnect'
},
{
method: 'GET',
path: '/auth/logout',
handler: 'AuthController.logout'
}
]