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 = {