update :
All checks were successful
continuous-integration/drone/push Build is passing

Patch bug
Add search and filtre in commands page
This commit is contained in:
2024-07-06 16:52:00 +02:00
parent 9233856850
commit 093540a2f5
8 changed files with 13 additions and 885 deletions

View File

@@ -1,33 +1,35 @@
const express = require('express');
const path = require('path');
const app = express();
const port = 8005;
app.set('view engine', 'ejs');
app.use('/public', express.static(path.join(__dirname, 'public')));
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
res.render('index');
});
app.get('/legal', (req, res) => {
res.sendFile(path.join(__dirname, 'legal.html'));
res.render('legal');
});
app.get('/legal/privacy', (req, res) => {
res.sendFile(path.join(__dirname, 'privacy.html'));
res.render('privacy');
});
app.get('/legal/cgu', (req, res) => {
res.sendFile(path.join(__dirname, 'cgu.html'));
res.render('cgu');
});
app.get('/bot/feathures', (req, res) => {
res.sendFile(path.join(__dirname, 'feathures.html'));
res.render('feathures');
});
app.get('/bot/commands', (req, res) => {
res.sendFile(path.join(__dirname, 'commands.html'));
res.render('commands');
});
app.listen(port, () => {