New feature added: Games automatically saved in database after game

ends in pgn format
This commit is contained in:
Moon Patel
2023-07-07 19:10:48 +05:30
parent 0abd8e0660
commit 8f39b29377
8 changed files with 89 additions and 24 deletions
-1
View File
@@ -25,7 +25,6 @@ function checkAuthMiddleware(req, res, next) {
if (req.method === "OPTIONS") {
return next();
}
console.log(req.headers)
if (!req.headers.authorization) {
console.log("NOT AUTH. AUTH HEADER MISSING.");
return next(new NotAuthError("Not authenticated."));