mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-30 17:37:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| module.exports = [
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/login',
 | |
|     handler: 'authentication.login',
 | |
|     config: {
 | |
|       auth: false,
 | |
|       middlewares: ['admin::rateLimit'],
 | |
|     },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/renew-token',
 | |
|     handler: 'authentication.renewToken',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/register-admin',
 | |
|     handler: 'authentication.registerAdmin',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'GET',
 | |
|     path: '/registration-info',
 | |
|     handler: 'authentication.registrationInfo',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/register',
 | |
|     handler: 'authentication.register',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/forgot-password',
 | |
|     handler: 'authentication.forgotPassword',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/reset-password',
 | |
|     handler: 'authentication.resetPassword',
 | |
|     config: { auth: false },
 | |
|   },
 | |
|   {
 | |
|     method: 'POST',
 | |
|     path: '/logout',
 | |
|     handler: 'authentication.logout',
 | |
|     config: {
 | |
|       policies: ['admin::isAuthenticatedAdmin'],
 | |
|     },
 | |
|   },
 | |
| ];
 | 
