dynamic http embeds, kofi button, etc

This commit is contained in:
legop3
2026-01-07 21:28:21 -05:00
parent aba01161c9
commit 7335cefffb
19 changed files with 371 additions and 37 deletions
+1 -8
View File
@@ -1,4 +1,3 @@
const path = require('path');
const http = require('http');
const express = require('express');
const morgan = require('morgan');
@@ -7,13 +6,7 @@ const config = require('./config');
const app = express();
app.use(morgan('dev'));
app.use(express.json());
app.use(express.static(config.staticDir));
app.get('/spectate', (req, res) => {
res.sendFile(path.join(config.staticDir, 'index.html'));
});
app.get('/mini', (req, res) => {
res.sendFile(path.join(config.staticDir, 'index.html'));
});
app.use(express.static(config.staticDir, { index: false }));
const httpServer = http.createServer(app);