Added cors
This commit is contained in:
parent
7c1de446eb
commit
760fc867a3
1
index.js
1
index.js
@ -4,6 +4,7 @@ const economicSystemRoutes = require('./routes/economicSystem');
|
||||
|
||||
// Middleware
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
|
||||
// Routes
|
||||
app.use('/api/economicSystem', economicSystemRoutes);
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
"homepage": "https://github.com/ranchimall/economicsystem-tokenroom#readme",
|
||||
"dependencies": {
|
||||
"googleapis": "",
|
||||
"express": ""
|
||||
"express": "",
|
||||
"cors":""
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user