83 lines
1.6 KiB
JavaScript
Raw Permalink Normal View History

2021-09-06 08:52:37 +02:00
'use strict';
module.exports = [
{
method: 'GET',
path: '/connect/(.*)',
handler: 'auth.connect',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
2021-09-06 08:52:37 +02:00
prefix: '',
},
},
{
method: 'POST',
path: '/auth/local',
handler: 'auth.callback',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
2021-09-06 08:52:37 +02:00
prefix: '',
},
},
{
method: 'POST',
path: '/auth/local/register',
handler: 'auth.register',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
2021-09-06 08:52:37 +02:00
prefix: '',
},
},
{
method: 'GET',
path: '/auth/:provider/callback',
handler: 'auth.callback',
config: {
prefix: '',
},
},
{
method: 'POST',
path: '/auth/forgot-password',
handler: 'auth.forgotPassword',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
2021-09-06 08:52:37 +02:00
prefix: '',
},
},
{
method: 'POST',
path: '/auth/reset-password',
handler: 'auth.resetPassword',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
2021-09-06 08:52:37 +02:00
prefix: '',
},
},
{
method: 'GET',
path: '/auth/email-confirmation',
handler: 'auth.emailConfirmation',
config: {
prefix: '',
},
},
{
method: 'POST',
path: '/auth/send-email-confirmation',
handler: 'auth.sendEmailConfirmation',
config: {
prefix: '',
},
},
2022-03-20 19:50:08 +01:00
{
2022-08-03 16:46:41 +02:00
method: 'POST',
2022-03-20 19:50:08 +01:00
path: '/auth/change-password',
handler: 'auth.changePassword',
config: {
middlewares: ['plugin::users-permissions.rateLimit'],
prefix: '',
},
},
2021-09-06 08:52:37 +02:00
];