1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Use new cleanup middleware.

This commit is contained in:
Sam Rose 2024-02-02 09:32:07 +00:00
parent ba002f9649
commit 21dfbe75ff
No known key found for this signature in database

View file

@ -1,6 +1,7 @@
import Router from "@koa/router"
import { auth, middleware, env as envCore } from "@budibase/backend-core"
import currentApp from "../middleware/currentapp"
import cleanup from "../middleware/cleanup"
import zlib from "zlib"
import { mainRoutes, staticRoutes, publicRoutes } from "./routes"
import { middleware as pro } from "@budibase/pro"
@ -62,6 +63,8 @@ if (apiEnabled()) {
.use(auth.auditLog)
// @ts-ignore
.use(migrations)
// @ts-ignore
.use(cleanup)
// authenticated routes
for (let route of mainRoutes) {