feat: dl.sechen0v.ru/mod/quiz/attempt.php routing, title/favicon, redirect from auth

This commit is contained in:
aedes
2026-04-22 13:40:45 +03:00
parent 6cc469973a
commit edefe73406
20 changed files with 406 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ if (proxyUrl) console.log(`✓ Anthropic proxy: ${proxyUrl}`);
const app = express();
const PUBLIC_DIR = path.join(__dirname, 'public');
app.get(['/q', '/q.html'], (_req, res) => res.sendFile(path.join(PUBLIC_DIR, 'q', 'index.html')));
app.get(['/q', '/q.html', '/mod/quiz/attempt.php'], (_req, res) => res.sendFile(path.join(PUBLIC_DIR, 'q', 'index.html')));
app.get('/auth.php', (_req, res) => res.sendFile(path.join(PUBLIC_DIR, 'index.html')));
app.use(express.static(PUBLIC_DIR));