Add documentation to functions

This commit is contained in:
waveringana 2022-12-11 06:31:19 +00:00
parent 0a0d9b9802
commit 34e991f017
5 changed files with 18 additions and 7 deletions

View file

@ -4,7 +4,7 @@ import express from "express";
import {db, createUser} from "../types/db";
const router: Router = express.Router();
/**Middleware to check if a user is actually signed in */
const adminCheck: Middleware = (req: Request, res: Response, next: NextFunction) => {
if (!req.user)
return res.status(403).send("You are not authorized to perform this action");