File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 38
38
"eslint" : " eslint server/. test/. --config .eslintrc.json" ,
39
39
"start" : " concurrently 'mongod' 'wait-on tcp:27017 && NODE_ENV=production node server/'" ,
40
40
"start-win" : " concurrently \" mongod\" \" wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\" " ,
41
- "dev" : " npm run clear && concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'" ,
41
+ "dev" : " npm run clear && concurrently 'mongod --dbpath data --quiet ' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'" ,
42
42
"dev-win" : " npm run clear && concurrently \" mongod --dbpath data\" \" wait-on tcp:27017&&SET NODE_ENV=development&& nodemon --inspect server/\" " ,
43
43
"dev-noseed" : " concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'" ,
44
44
"dev-win-noseed" : " concurrently \" mongod --dbpath data\" \" wait-on tcp:27017 && nodemon --inspect server/\" " ,
Original file line number Diff line number Diff line change @@ -4,17 +4,24 @@ const { authenticate } = require('feathers-authentication').hooks;
4
4
5
5
module . exports = {
6
6
before : {
7
- all : [ authenticate ( 'jwt' ) ] ,
7
+ all : [ ] ,
8
8
find : [ ] ,
9
9
get : [ ] ,
10
10
create : [
11
+ authenticate ( 'jwt' ) ,
11
12
when ( isProvider ( 'external' ) , [
12
13
hooks . queryWithCurrentUser ( )
13
14
] )
14
15
] ,
15
- update : [ ] ,
16
- patch : [ ] ,
17
- remove : [ ]
16
+ update : [
17
+ authenticate ( 'jwt' )
18
+ ] ,
19
+ patch : [
20
+ authenticate ( 'jwt' )
21
+ ] ,
22
+ remove : [
23
+ authenticate ( 'jwt' )
24
+ ]
18
25
} ,
19
26
20
27
after : {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ module.exports = {
68
68
before : {
69
69
all : [ ] ,
70
70
find : [ ] ,
71
- get : [ /* ...restrict */ ] ,
71
+ get : [ ] ,
72
72
create : [
73
73
hashPassword ( ) ,
74
74
lowerCase ( 'email' , 'username' ) ,
You can’t perform that action at this time.
0 commit comments