Use new cleanup middleware.
This commit is contained in:
parent
ba002f9649
commit
21dfbe75ff
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue