mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 20:02:20 -06:00
v2.0.4-rc
This commit is contained in:
@@ -49,7 +49,7 @@ if (!serverConfig.DISABLE_MANAGER) router.use('/manager', new ViewsRouter().rout
|
||||
|
||||
router.get('/assets/*', (req, res) => {
|
||||
const fileName = req.params[0];
|
||||
const basePath = path.join(__dirname, '../../../manager/dist');
|
||||
const basePath = path.join(process.cwd(), 'manager', 'dist');
|
||||
|
||||
const filePath = path.join(basePath, 'assets/', fileName);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export class ViewsRouter extends RouterBroker {
|
||||
super();
|
||||
this.router = Router();
|
||||
|
||||
const basePath = path.join(__dirname, '../../../manager/dist');
|
||||
const basePath = path.join(process.cwd(), 'manager', 'dist');
|
||||
const indexPath = path.join(basePath, 'index.html');
|
||||
|
||||
console.log('Base path:', basePath);
|
||||
|
||||
Reference in New Issue
Block a user