File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11const logger = require ( "loglevel" ) ;
22const jwt = require ( "jsonwebtoken" ) ;
3-
43logger . enableAll ( ) ;
54
65const {
@@ -30,7 +29,7 @@ const baseConfig = {
3029 jwt : {
3130 sign : JWT_SECRET_SIGN ,
3231 payload : JWT_SECRET_PAYLOAD ,
33- token : jwt . sign ( { sub : JWT_SECRET_PAYLOAD } , JWT_SECRET_SIGN ) ,
32+ token : jwt . sign ( { sub : JWT_SECRET_PAYLOAD } , JWT_SECRET_SIGN ) ,
3433 } ,
3534 bcryptSaltRounds : parseInt ( BCRYPT_SALT_ROUNDS ) ,
3635 logger : {
Original file line number Diff line number Diff line change 11const { Router } = require ( "express" ) ;
2- const auth = require ( "../middleware/auth-middleware" ) ;
32
43const router = Router ( ) ;
54
87 searchProperties
98} = require ( "../controllers/properties-controller" ) ;
109
11- router . get ( "/:propertyId" , auth ( ) , getProperty ) ;
12- router . get ( "/" , auth ( ) , searchProperties ) ;
10+ router . get ( "/:propertyId" , getProperty ) ;
11+ router . get ( "/" , searchProperties ) ;
1312
1413module . exports = router ;
You can’t perform that action at this time.
0 commit comments