feat: dl.sechen0v.ru/mod/quiz/attempt.php routing, title/favicon, redirect from auth
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user