mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
feat: add version info
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
15
ui/src/api/footer.ts
Normal file
15
ui/src/api/footer.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const metaApi = {
|
||||
footer: async () => {
|
||||
const res = await fetch("/api/v1/version", { cache: "no-store" })
|
||||
if (!res.ok) throw new Error("failed to fetch version")
|
||||
return (await res.json()) as {
|
||||
built: string
|
||||
builtBy: string
|
||||
commit: string
|
||||
go: string
|
||||
goArch: string
|
||||
goOS: string
|
||||
version: string
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user