Dev api.
This commit is contained in:
parent
fd71afde1d
commit
b1cd134ee0
|
@ -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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
export interface GetVersionResponse {
|
||||||
|
version: string
|
||||||
|
}
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue