This commit is contained in:
mike12345567 2024-12-02 14:42:46 +00:00
parent fd71afde1d
commit b1cd134ee0
4 changed files with 6 additions and 3 deletions

View File

@ -68,7 +68,6 @@ import {
ImportToUpdateAppRequest, ImportToUpdateAppRequest,
ImportToUpdateAppResponse, ImportToUpdateAppResponse,
SetRevertableAppVersionRequest, SetRevertableAppVersionRequest,
SetRevertableAppVersionResponse,
} from "@budibase/types" } from "@budibase/types"
import { BASE_LAYOUT_PROP_IDS } from "../../constants/layouts" import { BASE_LAYOUT_PROP_IDS } from "../../constants/layouts"
import sdk from "../../sdk" import sdk from "../../sdk"

View File

@ -11,7 +11,7 @@ import {
db as dbCore, db as dbCore,
cache, cache,
} from "@budibase/backend-core" } from "@budibase/backend-core"
import { App } from "@budibase/types" import { App, Ctx, GetVersionResponse } from "@budibase/types"
async function redirect( async function redirect(
ctx: any, ctx: any,
@ -131,7 +131,7 @@ export async function revert(ctx: any) {
} }
} }
export async function getBudibaseVersion(ctx: any) { export async function getBudibaseVersion(ctx: Ctx<void, GetVersionResponse>) {
const version = envCore.VERSION const version = envCore.VERSION
ctx.body = { ctx.body = {
version, version,

View File

@ -0,0 +1,3 @@
export interface GetVersionResponse {
version: string
}

View File

@ -18,3 +18,4 @@ export * from "./role"
export * from "./plugins" export * from "./plugins"
export * from "./apikeys" export * from "./apikeys"
export * from "./deployment" export * from "./deployment"
export * from "./dev"