feat: redirect /auth.php to student.sechenov.ru/auth.php
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user