Moved CSS from HTML to CSS files

This commit is contained in:
ION606
2022-10-11 09:22:14 -04:00
parent 37babea300
commit 626e8bee51
16 changed files with 985 additions and 1123 deletions
+10
View File
@@ -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);