We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f1652 commit 99818fbCopy full SHA for 99818fb
src/index.js
@@ -15,12 +15,12 @@ app.use(express.json({ limit: '50mb' }))
15
16
const router = express.Router()
17
router.use((req, res, next) => {
18
- // const token = req.get('x-auth-token')
19
- // if (!!token && token === AUTH_TOKEN) {
+const token = req.get('x-auth-token')
+if (!!token && token === AUTH_TOKEN) {
20
next()
21
- // } else {
22
- // res.status(401).json({ message: 'Invalid auth token' })
23
- // }
+ } else {
+res.status(401).json({ message: 'Invalid auth token' })
+}
24
})
25
26
router.post('/lambda/json-to-excel/from-link', async (req, res) => {
0 commit comments