File tree Expand file tree Collapse file tree 3 files changed +51
-4
lines changed Expand file tree Collapse file tree 3 files changed +51
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import feathers from '@feathersjs/feathers';
2
2
import express from '@feathersjs/express' ;
3
3
import socketio from '@feathersjs/socketio' ;
4
4
import '@feathersjs/transport-commons' ;
5
+ import cors from 'cors' ;
5
6
6
7
import services from './services' ;
7
8
@@ -14,6 +15,7 @@ app.use(express.static(__dirname));
14
15
app . configure ( express . rest ( ) ) ;
15
16
app . configure ( socketio ( ) ) ;
16
17
app . use ( express . errorHandler ( ) ) ;
18
+ app . use ( cors ( ) ) ;
17
19
app . configure ( services ) ;
18
20
19
21
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @oneflow/ which-api" ,
2
+ "name" : " which-api" ,
3
3
"version" : " 1.0.0" ,
4
- "main" : " index.js " ,
4
+ "main" : " index.ts " ,
5
5
"scripts" : {
6
6
"test" : " echo \" Error: no test specified\" && exit 1"
7
7
},
13
13
"@feathersjs/feathers" : " ^4.5.3" ,
14
14
"@feathersjs/socketio" : " ^4.5.4" ,
15
15
"@feathersjs/transport-commons" : " ^4.5.3" ,
16
- "@types/mongoose " : " ^5.7.23 " ,
16
+ "cors " : " ^2.8.5 " ,
17
17
"feathers-mongoose" : " ^8.3.0" ,
18
+ "lodash" : " ^4.17.15" ,
18
19
"mongoose" : " ^5.9.18"
19
20
},
20
21
"repository" : {
25
26
"url" : " https://github.com/eug-vs/which-api/issues"
26
27
},
27
28
"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
+ }
29
36
}
You can’t perform that action at this time.
0 commit comments