update language
This commit is contained in:
@ -51,7 +51,7 @@ export class ReturnHelper {
|
|||||||
return res.status(status_code || 200).json({
|
return res.status(status_code || 200).json({
|
||||||
status: false,
|
status: false,
|
||||||
error_code: error_code || 400,
|
error_code: error_code || 400,
|
||||||
message: message || "success",
|
message: message || "failed",
|
||||||
error: error,
|
error: error,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,10 +2,13 @@ import express from 'express';
|
|||||||
|
|
||||||
import { AuthController } from '../controllers/auth';
|
import { AuthController } from '../controllers/auth';
|
||||||
import { UserController } from '../controllers/user';
|
import { UserController } from '../controllers/user';
|
||||||
|
import { Language } from '../langs/lang';
|
||||||
|
|
||||||
export class RoutePublic {
|
export class RoutePublic {
|
||||||
static setup(app: express.Application) {
|
static setup(app: express.Application) {
|
||||||
|
|
||||||
|
app.use(Language.apply);
|
||||||
|
|
||||||
app.post('/api/login', AuthController.login)
|
app.post('/api/login', AuthController.login)
|
||||||
app.put('/api/reset_password/:email', AuthController.resetPassword)
|
app.put('/api/reset_password/:email', AuthController.resetPassword)
|
||||||
app.put('/api/update_password/:token', AuthController.updatePassword)
|
app.put('/api/update_password/:token', AuthController.updatePassword)
|
||||||
|
|||||||
Reference in New Issue
Block a user