budibase/packages/server/middleware/routeHandlers/upgradeData.js

7 lines
209 B
JavaScript

const StatusCodes = require("../../utilities/statusCodes")
module.exports = async ctx => {
await ctx.instance.templateApi.upgradeData(ctx.request.body.newHierarchy)
ctx.response.status = StatusCodes.OK
}