From e394fa0a679ec4a4c6109512ace2656b5f076940 Mon Sep 17 00:00:00 2001 From: samwel141 Date: Mon, 22 Jul 2024 23:26:15 +0300 Subject: [PATCH] fix: fix typos --- package.json | 4 ++-- server/app.js | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index f1c864ce..f55d5d85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "treetracker", - "version": "1.38.0", + "version": "1.38.4", "description": "https://documenter.getpostman.com/view/10112806/SWTD8H5x?version=latest", "private": true, "main": "server/server.js", @@ -102,4 +102,4 @@ "engines": { "node": ">= 16" } -} +} \ No newline at end of file diff --git a/server/app.js b/server/app.js index 031d469e..1a5f3196 100644 --- a/server/app.js +++ b/server/app.js @@ -6,17 +6,8 @@ const { errorHandler, handlerWrapper } = require('./utils/utils'); const app = express(); -const corsOptions = { - origin: '*', - methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', - credentials: true, - optionsSuccessStatus: 204, -}; - if (process.env.NODE_ENV === 'development') { app.use(cors()); -} else { - app.use(cors(corsOptions)); } /* @@ -72,4 +63,4 @@ app.get('*', function (req, res) { res.status(200).send(version); }); -module.exports = app; +module.exports = app; \ No newline at end of file