1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00
budibase/packages/worker/src/api/routes/system/accounts.ts
2022-08-25 19:41:47 +01:00

20 lines
425 B
TypeScript

import Router from "@koa/router"
import * as controller from "../../controllers/system/accounts"
import { middleware } from "@budibase/backend-core"
const router = new Router()
router
.put(
"/api/system/accounts/:accountId/metadata",
middleware.internalApi,
controller.save
)
.delete(
"/api/system/accounts/:accountId/metadata",
middleware.internalApi,
controller.destroy
)
export = router