We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0c5a5 commit c746776Copy full SHA for c746776
1 file changed
backend/src/api/public/v1/index.ts
@@ -1,5 +1,7 @@
1
import { Router } from 'express'
2
3
+import { NotFoundError } from '@crowd/common'
4
+
5
import { AUTH0_CONFIG } from '../../../conf'
6
import { oauth2Middleware } from '../middlewares/oauth2Middleware'
7
import { staticApiKeyMiddleware } from '../middlewares/staticApiKeyMiddleware'
@@ -15,5 +17,9 @@ export function v1Router(): Router {
15
17
router.use('/organizations', oauth2Middleware(AUTH0_CONFIG), organizationsRouter())
16
18
router.use('/member-organization-affiliations', staticApiKeyMiddleware(), devStatsRouter())
19
20
+ router.use(() => {
21
+ throw new NotFoundError()
22
+ })
23
24
return router
25
}
0 commit comments