summaryrefslogtreecommitdiff
path: root/pkg/webui/states.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-27 22:00:51 +0100
committerJulien Dessaux2025-01-27 22:00:51 +0100
commit26e10a9399bd6185741d0912ffa54c807ffef671 (patch)
tree0cf9e81c6880b07d9c029e3abd6ee03b6a2acdb1 /pkg/webui/states.go
parentchore(webui): remove redundant set of the Cache-Control header in state get h... (diff)
downloadtfstated-26e10a9399bd6185741d0912ffa54c807ffef671.tar.gz
tfstated-26e10a9399bd6185741d0912ffa54c807ffef671.tar.bz2
tfstated-26e10a9399bd6185741d0912ffa54c807ffef671.zip
feat(webui): implement state versions list
Diffstat (limited to '')
-rw-r--r--pkg/webui/states.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/webui/states.go b/pkg/webui/states.go
index 0e956fb..d99d310 100644
--- a/pkg/webui/states.go
+++ b/pkg/webui/states.go
@@ -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