Fix rate limiter break api doc

pull/2261/head^2
Jérémy Rialland 2022-08-31 10:54:15 +02:00 committed by Jérémy Rialland
parent 18eb4ad22e
commit cada4c7c2b
1 changed files with 4 additions and 2 deletions

View File

@ -37,11 +37,13 @@ app.use(catchErrors())
app.use(cors())
app.use(rateLimiterMiddleware)
router.use('/api/v1', docRoutes(), openapiRoutes(openapi))
router.use(rateLimiterMiddleware)
const apiRoutes = publicodesAPI(new Engine(rules))
router.use('/api/v1', apiRoutes, docRoutes(), openapiRoutes(openapi))
router.use('/api/v1', apiRoutes)
app.use(router.routes())
app.use(router.allowedMethods())