reset password

This commit is contained in:
2024-11-27 17:55:58 +07:00
parent 4ba6d2213b
commit d9b80c6af0
2 changed files with 41 additions and 1 deletions

View File

@ -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)