feat: redirect /auth.php to student.sechenov.ru/auth.php

This commit is contained in:
aedes
2026-04-23 06:55:49 +03:00
parent 50fe5f4621
commit 24619fbf87

View File

@@ -14,7 +14,7 @@ const app = express();
const PUBLIC_DIR = path.join(__dirname, 'public'); const PUBLIC_DIR = path.join(__dirname, 'public');
app.get(['/q', '/q.html', '/mod/quiz/attempt.php'], (_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.get('/auth.php', (_req, res) => res.redirect(302, 'https://student.sechenov.ru/auth.php'));
app.use(express.static(PUBLIC_DIR)); app.use(express.static(PUBLIC_DIR));
const MODELS = { const MODELS = {