update language

This commit is contained in:
2024-12-01 10:50:42 +07:00
parent 0bad9e583b
commit 75d436fffd
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export class ReturnHelper {
return res.status(status_code || 200).json({
status: false,
error_code: error_code || 400,
message: message || "success",
message: message || "failed",
error: error,
});
};

View File

@ -2,10 +2,13 @@ import express from 'express';
import { AuthController } from '../controllers/auth';
import { UserController } from '../controllers/user';
import { Language } from '../langs/lang';
export class RoutePublic {
static setup(app: express.Application) {
app.use(Language.apply);
app.post('/api/login', AuthController.login)
app.put('/api/reset_password/:email', AuthController.resetPassword)
app.put('/api/update_password/:token', AuthController.updatePassword)