20 lines
425 B
TypeScript
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
|