mirror of
https://github.com/ION606/selmer-bot-website.git
synced 2026-05-14 22:16:54 +00:00
Added the legacy releases page and fixed some typos
This commit is contained in:
@@ -219,7 +219,8 @@ app.get('/getChannels', async (req, res) => {
|
||||
|
||||
//Headers: servernumber, sessionid
|
||||
app.post('/setCurrentServer', async (req, res) => {
|
||||
setCurrentServer().then((code) => {
|
||||
const {servernumber, sessionid} = req.headers;
|
||||
setCurrentServer(sessionid, servernumber).then((code) => {
|
||||
res.sendStatus(code);
|
||||
}).catch((err) => {
|
||||
console.error(err);
|
||||
@@ -599,6 +600,16 @@ app.get("/userData", async (req, res) => {
|
||||
});
|
||||
|
||||
|
||||
app.get("/releases", async (req, res) => {
|
||||
res.sendFile('releases.html', { root: 'HTML' });
|
||||
});
|
||||
|
||||
|
||||
app.get("/downloads/*", async (req, res) => {
|
||||
return res.sendFile(`${req.path}`, {root: '.'});
|
||||
});
|
||||
|
||||
|
||||
app.get('/', async ({ query }, response) => {
|
||||
const { code } = query;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user