Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
samwel141 committed Jul 22, 2024
1 parent 82bfd74 commit e394fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -102,4 +102,4 @@
"engines": {
"node": ">= 16"
}
}
}
11 changes: 1 addition & 10 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/*
Expand Down Expand Up @@ -72,4 +63,4 @@ app.get('*', function (req, res) {
res.status(200).send(version);
});

module.exports = app;
module.exports = app;

0 comments on commit e394fa0

Please sign in to comment.