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
1 changed files with 3 additions and 0 deletions

View File

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