landing page

This commit is contained in:
2026-03-22 15:34:09 -05:00
parent 61f4b5acd6
commit 3da410770a
5 changed files with 1816 additions and 3 deletions

View File

@@ -52,8 +52,10 @@ const wsMessageRateLimiter = new RateLimiterMemory({
duration: 1,
});
const path = require('path');
const app = express();
const port = 3000;
app.use(express.static(path.join(__dirname, 'public')));
app.use(json());
// Rate limiting middleware for HTTP requests
@@ -646,9 +648,6 @@ async function authenticateToken(req, res, next) {
}
}
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.post('/login', async (req, res) => {
const { email, password } = req.body;