reset password
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
import express from 'express';
|
||||
|
||||
import { AuthController } from '../controllers/auth';
|
||||
import { UserController } from '../controllers/user';
|
||||
|
||||
export class RoutePublic {
|
||||
static setup(app: express.Application) {
|
||||
|
||||
app.post('/api/login', AuthController.login)
|
||||
app.post('/api/reset_password', AuthController.login)
|
||||
app.put('/api/reset_password/:email', AuthController.resetPassword)
|
||||
app.put('/api/update_password/:token', UserController.updatePassword)
|
||||
app.put('/api/logout/:refresh_token', AuthController.logout)
|
||||
app.put('/api/renew_token/:refresh_token', AuthController.renewToken)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user