Skip to content

Commit 99818fb

Browse files
committed
removed auth commented
1 parent e0f1652 commit 99818fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ app.use(express.json({ limit: '50mb' }))
1515

1616
const router = express.Router()
1717
router.use((req, res, next) => {
18-
// const token = req.get('x-auth-token')
19-
// if (!!token && token === AUTH_TOKEN) {
18+
const token = req.get('x-auth-token')
19+
if (!!token && token === AUTH_TOKEN) {
2020
next()
21-
// } else {
22-
// res.status(401).json({ message: 'Invalid auth token' })
23-
// }
21+
} else {
22+
res.status(401).json({ message: 'Invalid auth token' })
23+
}
2424
})
2525

2626
router.post('/lambda/json-to-excel/from-link', async (req, res) => {

0 commit comments

Comments
 (0)