1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

add config to disable floaters

This commit is contained in:
Laura
2025-09-27 23:50:36 +02:00
parent 7d16b5e6e8
commit f7b43fb559
4 changed files with 83 additions and 62 deletions

17
main.go
View File

@@ -36,13 +36,16 @@ func main() {
r.Get("/-/data", func(w http.ResponseWriter, r *http.Request) {
RespondJson(w, http.StatusOK, map[string]any{
"authentication": env.Authentication.Enabled,
"authenticated": IsAuthenticated(r),
"search": env.Tokens.Exa != "",
"icons": icons,
"models": models,
"prompts": Prompts,
"version": Version,
"authenticated": IsAuthenticated(r),
"config": map[string]any{
"auth": env.Authentication.Enabled,
"search": env.Tokens.Exa != "",
"motion": env.UI.ReducedMotion,
},
"icons": icons,
"models": models,
"prompts": Prompts,
"version": Version,
})
})