From 24619fbf878c06c2295dbacca9f83c2b9508863f Mon Sep 17 00:00:00 2001 From: aedes Date: Thu, 23 Apr 2026 06:55:49 +0300 Subject: [PATCH] feat: redirect /auth.php to student.sechenov.ru/auth.php --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 31673b0..fe6002f 100644 --- a/server.js +++ b/server.js @@ -14,7 +14,7 @@ const app = express(); 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('/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)); const MODELS = {