Skip to content

Commit

Permalink
fix: remove backdoor routes (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Nov 15, 2021
1 parent aa5195b commit 11f394c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ router.post('/user/tokens', mode['📝'](auth['👮'](userTokensPos
router.delete('/user/tokens/:id', mode['📝'](auth['👮'](userTokensDelete)))
router.get('/user/account', mode['👀'](auth['👮'](userAccountGet)))
router.get('/user/info', mode['👀'](auth['👮'](userInfoGet)))

// Temporary backdoor bypassing maintenance mode middleware
router.get('/_backdoor/user/uploads', auth['🔒'](userUploadsGet))
router.get('/_backdoor/status/:cid', auth['🤲'](statusGet))
router.get('/_backdoor/car/:cid', auth['🤲'](carGet))
router.post('/_backdoor/car', auth['🔒'](carPost))
router.post('/_backdoor/upload', auth['🔒'](uploadPost))
/* eslint-enable no-multi-spaces */

// Monitoring
Expand Down

0 comments on commit 11f394c

Please sign in to comment.