mirror of
https://github.com/ION606/selmer-bot-website.git
synced 2026-05-14 22:16:54 +00:00
Moved CSS from HTML to CSS files
This commit is contained in:
@@ -55,6 +55,7 @@ async function getJSONResponse(body) {
|
||||
const app = express();
|
||||
// app.use(express.json());
|
||||
app.use(express.static('/assets'));
|
||||
app.use('/CSS', express.static('./CSS'));
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
||||
|
||||
@@ -296,6 +297,15 @@ app.get('/team', async (req, res) => {
|
||||
|
||||
//#endregion
|
||||
|
||||
|
||||
//#region INCLUDES
|
||||
|
||||
app.get('/cal.css', async (req, res) => {
|
||||
return res.sendFile('cal.css', { root: 'CSS' });
|
||||
})
|
||||
|
||||
//#endregion
|
||||
|
||||
app.post("/suggestion", async (req, res)=> {
|
||||
if (req.headers.sessionid == 'null') {
|
||||
return res.sendStatus(401);
|
||||
|
||||
Reference in New Issue
Block a user