blah work

This commit is contained in:
newtbot
2023-12-20 22:20:34 +08:00
parent 68ba9f8f67
commit 81553bd091
8 changed files with 307 additions and 12 deletions

View File

@ -1,13 +1,17 @@
/*
1) api route
2) enforce best practice for api routes
*/
const express = require("express");
const helmet = require('helmet')
app.use(helmet())
const app = express();
const port = 80;
//disable x-powered-by header for security reasons
app.disable('x-powered-by')
const testRoute = require("../routes/test.js")
const latestDataroute = require("../routes/latest-Data.js")

View File