mirror of
https://github.com/strapi/strapi.git
synced 2025-07-09 01:52:36 +00:00
83 lines
1.6 KiB
JavaScript
83 lines
1.6 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = [
|
|
{
|
|
method: 'GET',
|
|
path: '/connect/(.*)',
|
|
handler: 'auth.connect',
|
|
config: {
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/auth/local',
|
|
handler: 'auth.callback',
|
|
config: {
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/auth/local/register',
|
|
handler: 'auth.register',
|
|
config: {
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
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'],
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/auth/reset-password',
|
|
handler: 'auth.resetPassword',
|
|
config: {
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'GET',
|
|
path: '/auth/email-confirmation',
|
|
handler: 'auth.emailConfirmation',
|
|
config: {
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/auth/send-email-confirmation',
|
|
handler: 'auth.sendEmailConfirmation',
|
|
config: {
|
|
prefix: '',
|
|
},
|
|
},
|
|
{
|
|
method: 'POST',
|
|
path: '/auth/change-password',
|
|
handler: 'auth.changePassword',
|
|
config: {
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
prefix: '',
|
|
},
|
|
},
|
|
];
|