feat(webui): implement state versions list

This commit is contained in:
Julien Dessaux 2025-01-27 22:00:51 +01:00
parent 80958d5b0f
commit 26e10a9399
Signed by: adyxax
GPG key ID: F92E51B86E07177E
12 changed files with 195 additions and 10 deletions

View file

@ -16,7 +16,7 @@ func handleStatesGET(db *database.DB) http.Handler {
States []model.State
}
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
states, err := db.LoadStatesByPath()
states, err := db.LoadStates()
if err != nil {
errorResponse(w, http.StatusInternalServerError, err)
return