Skip to content

Commit

Permalink
backend: Fixed static resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Aug 12, 2024
1 parent 6a477a1 commit 8024d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvidu-call-back/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const createApp = () => {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

app.use(express.static(path.join(__dirname, 'public/browser')));
app.use(express.static(path.join(__dirname, '../public/browser')));
app.use(express.json());

// Setup routes
app.use('/call/api', apiRouter);
app.use('/livekit', livekitRouter);
app.get(/^(?!\/api).*$/, (req: Request, res: Response) => {
res.sendFile(path.join(__dirname, 'public/browser', 'index.html'));
res.sendFile(path.join(__dirname, '../public/browser', 'index.html'));
});

return app;
Expand Down

0 comments on commit 8024d04

Please sign in to comment.