strapi/packages/core/admin/server/routes/authentication.js

50 lines
986 B
JavaScript
Raw Normal View History

2021-09-08 16:16:16 +02:00
'use strict';
module.exports = [
{
method: 'POST',
path: '/login',
handler: 'authentication.login',
config: {
auth: false,
middlewares: ['admin::rateLimit'],
},
2021-09-08 16:16:16 +02:00
},
{
method: 'POST',
path: '/renew-token',
handler: 'authentication.renewToken',
2022-11-02 18:49:05 +01:00
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
{
method: 'POST',
path: '/register-admin',
handler: 'authentication.registerAdmin',
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
{
method: 'GET',
path: '/registration-info',
handler: 'authentication.registrationInfo',
2022-11-02 18:49:05 +01:00
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
{
method: 'POST',
path: '/register',
handler: 'authentication.register',
2022-11-02 18:49:05 +01:00
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
{
method: 'POST',
path: '/forgot-password',
handler: 'authentication.forgotPassword',
2022-11-02 18:49:05 +01:00
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
{
method: 'POST',
path: '/reset-password',
handler: 'authentication.resetPassword',
2022-11-02 18:49:05 +01:00
config: { auth: false },
2021-09-08 16:16:16 +02:00
},
];