Added cors

This commit is contained in:
Vivek Teega 2023-06-02 21:51:17 +05:30
parent 7c1de446eb
commit 760fc867a3
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ const economicSystemRoutes = require('./routes/economicSystem');
// Middleware
app.use(express.json());
app.use(cors());
// Routes
app.use('/api/economicSystem', economicSystemRoutes);

View File

@ -18,7 +18,8 @@
"homepage": "https://github.com/ranchimall/economicsystem-tokenroom#readme",
"dependencies": {
"googleapis": "",
"express": ""
"express": "",
"cors":""
},
"scripts": {
"start": "node index.js"