Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TraderAlice/OpenAlice
/ get
Function
get
ui/src/api/version.ts:4–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
export
const
versionApi = {
4
async
get(): Promise<VersionInfo> {
5
const
res =
await
fetch(
'/api/version'
)
6
if
(!res.ok) throw
new
Error(`Failed to fetch version info: ${res.status}`)
7
return
res.json()
8
},
9
}
Callers
nothing calls this directly
Calls
1
fetch
Function · 0.50
Tested by
no test coverage detected