Skip to content

Commit 57275be

Browse files
committed
chore: install cors, bluebird and logash w/ types
1 parent de97719 commit 57275be

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import feathers from '@feathersjs/feathers';
22
import express from '@feathersjs/express';
33
import socketio from '@feathersjs/socketio';
44
import '@feathersjs/transport-commons';
5+
import cors from 'cors';
56

67
import services from './services';
78

@@ -14,6 +15,7 @@ app.use(express.static(__dirname));
1415
app.configure(express.rest());
1516
app.configure(socketio());
1617
app.use(express.errorHandler());
18+
app.use(cors());
1719
app.configure(services);
1820

1921

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@oneflow/which-api",
2+
"name": "which-api",
33
"version": "1.0.0",
4-
"main": "index.js",
4+
"main": "index.ts",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"
77
},
@@ -13,8 +13,9 @@
1313
"@feathersjs/feathers": "^4.5.3",
1414
"@feathersjs/socketio": "^4.5.4",
1515
"@feathersjs/transport-commons": "^4.5.3",
16-
"@types/mongoose": "^5.7.23",
16+
"cors": "^2.8.5",
1717
"feathers-mongoose": "^8.3.0",
18+
"lodash": "^4.17.15",
1819
"mongoose": "^5.9.18"
1920
},
2021
"repository": {
@@ -25,5 +26,11 @@
2526
"url": "https://github.com/eug-vs/which-api/issues"
2627
},
2728
"homepage": "https://github.com/eug-vs/which-api#readme",
28-
"description": ""
29+
"description": "",
30+
"devDependencies": {
31+
"@types/bluebird": "^3.5.32",
32+
"@types/cors": "^2.8.6",
33+
"@types/lodash": "^4.14.155",
34+
"@types/mongoose": "^5.7.23"
35+
}
2936
}

0 commit comments

Comments
 (0)