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,
ImportToUpdateAppResponse,
SetRevertableAppVersionRequest,
SetRevertableAppVersionResponse,
} from "@budibase/types"
import { BASE_LAYOUT_PROP_IDS } from "../../constants/layouts"
import sdk from "../../sdk"

View File

@ -11,7 +11,7 @@ import {
db as dbCore,
cache,
} from "@budibase/backend-core"
import { App } from "@budibase/types"
import { App, Ctx, GetVersionResponse } from "@budibase/types"
async function redirect(
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
ctx.body = {
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 "./apikeys"
export * from "./deployment"
export * from "./dev"