From 3ba9a33eee86b37e7ba64b8810ff9f2c331ebd54 Mon Sep 17 00:00:00 2001
From: "Dookarun, Jason J (PG/T - Computer Science)" <jd00795@surrey.ac.uk>
Date: Fri, 21 Apr 2023 23:09:36 +0100
Subject: [PATCH] Project dockerized and isAdmin returned

---
 src/App.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/App.js b/src/App.js
index 98bc4a3..b245508 100644
--- a/src/App.js
+++ b/src/App.js
@@ -95,7 +95,7 @@ function isAdmin(request, response, next) {
 }
 
 
-app.post('/location/parking-locations', async (request, response) => {
+app.post('/location/parking-locations', isAdmin, async (request, response) => {
     try {
         const {
             Title,
-- 
GitLab