Skip to content

Commit 74170a8

Browse files
Víctor Martínezdevmxhv
andauthored
Little Change (#16)
Co-authored-by: devmxhv <[email protected]>
1 parent e6b9a2d commit 74170a8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const logger = require("loglevel");
22
const jwt = require("jsonwebtoken");
3-
43
logger.enableAll();
54

65
const {
@@ -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: {

src/routes/properties-routes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { Router } = require("express");
2-
const auth = require("../middleware/auth-middleware");
32

43
const router = Router();
54

@@ -8,7 +7,7 @@ const {
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

1413
module.exports = router;

0 commit comments

Comments
 (0)