This commit is contained in:
wayanrivan
2026-05-21 21:39:09 +07:00
parent b10988e09d
commit f441711a47
14 changed files with 23 additions and 2 deletions

View File

@ -2,6 +2,8 @@ import express from 'express';
import { AuthController } from '../controllers/auth';
import { Language } from '../langs/lang';
import path from 'path';
import fs from 'fs';
export class RoutePublic {
static setup(app: express.Application) {
@ -13,6 +15,7 @@ export class RoutePublic {
app.put('/api/update_password/:token', AuthController.updatePassword)
app.put('/api/logout/:refresh_token', AuthController.logout)
app.put('/api/renew_token/:refresh_token/:application', AuthController.renewToken)
app.use('/static', express.static(path.join(__dirname, 'assets')));
}
}