1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00
budibase/packages/worker/src/api/routes/system/accounts.ts

20 lines
425 B
TypeScript
Raw Normal View History

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