Spaces:
Runtime error
Runtime error
Update server.js
Browse files
server.js
CHANGED
|
@@ -168,6 +168,11 @@ app.get('/privacy', (req, res) => {
|
|
| 168 |
res.sendFile(path.join(__dirname, 'privacy.html'));
|
| 169 |
});
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
// --- Discord OAuth2: Step 1 — Redirect to Discord ---
|
| 172 |
app.get('/auth/login', (req, res) => {
|
| 173 |
const clientId = getClientId();
|
|
@@ -612,4 +617,4 @@ function startServerInternal(client, cmdsData) {
|
|
| 612 |
}
|
| 613 |
|
| 614 |
|
| 615 |
-
module.exports = { startServer, app };
|
|
|
|
| 168 |
res.sendFile(path.join(__dirname, 'privacy.html'));
|
| 169 |
});
|
| 170 |
|
| 171 |
+
app.get('/league', (req, res) => {
|
| 172 |
+
res.sendFile(path.join(__dirname, 'league.html'));
|
| 173 |
+
});
|
| 174 |
+
|
| 175 |
+
|
| 176 |
// --- Discord OAuth2: Step 1 — Redirect to Discord ---
|
| 177 |
app.get('/auth/login', (req, res) => {
|
| 178 |
const clientId = getClientId();
|
|
|
|
| 617 |
}
|
| 618 |
|
| 619 |
|
| 620 |
+
module.exports = { startServer, app };
|