feat: add templates/games support with subpath routing and Docker build integration
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user