Patch bug Add search and filtre in commands page
This commit is contained in:
16
server.js
16
server.js
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user