Integrate hugo static generator

This commit is contained in:
2025-09-17 22:18:39 +02:00
parent eef2646054
commit 89dafbf421
63 changed files with 888 additions and 183 deletions

View File

@@ -0,0 +1,15 @@
import { type NextFunction, type Request, type Response } from "express";
import userModel, { values } from 'backend/models/userModel';
function checkAuthenticated(req: Request, res: Response, next: NextFunction) {
const pass = req.body.pass;
const password = userModel.getValue(values.pass);
if (pass && password) {
if (pass == password) {
return next();
}
}
return res.status(500).json({ message: 'Error when getting transactions.' });
}
export default checkAuthenticated;