diff --git a/src/App.js b/src/App.js index 98bc4a35dee9e4655dd6eba3f9daadc1701e1c28..b245508b7b07e4f39c4ce26f0ded6e38de6ab274 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,