Initial commit

This commit is contained in:
Luka Romih
2022-12-07 04:43:36 +01:00
commit 257f3c354f
496 changed files with 55373 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
const router = require('express-promise-router')()
const v1Router = require('./v1')
// Mark all api calls for conditional special treatment.
router.use((req, res, next) => {
req.isAjax = true
next()
})
// TODO Make sure all API endpoints have proper authorization protection (at a later point).
router.use('/v1', v1Router)
module.exports = router