feat: add templates/games support with subpath routing and Docker build integration

This commit is contained in:
Plena Finance Dev
2026-07-09 13:09:22 +05:30
parent 65fdc108a8
commit b842bc678d
12 changed files with 342 additions and 0 deletions

View File

@@ -64,6 +64,13 @@ app.get('/{*path}', (req, res, next) => {
return;
}
if (req.path.startsWith('/games')) {
res.sendFile(path.join(publicDir, 'games/index.html'), (err) => {
if (err) next();
});
return;
}
res.sendFile(path.join(publicDir, 'index.html'), (err) => {
if (err) next();
});