Dev api.
This commit is contained in:
parent
fd71afde1d
commit
b1cd134ee0
|
@ -68,7 +68,6 @@ import {
|
|||
ImportToUpdateAppRequest,
|
||||
ImportToUpdateAppResponse,
|
||||
SetRevertableAppVersionRequest,
|
||||
SetRevertableAppVersionResponse,
|
||||
} from "@budibase/types"
|
||||
import { BASE_LAYOUT_PROP_IDS } from "../../constants/layouts"
|
||||
import sdk from "../../sdk"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export interface GetVersionResponse {
|
||||
version: string
|
||||
}
|
|
@ -18,3 +18,4 @@ export * from "./role"
|
|||
export * from "./plugins"
|
||||
export * from "./apikeys"
|
||||
export * from "./deployment"
|
||||
export * from "./dev"
|
||||
|
|
Loading…
Reference in New Issue