summaryrefslogtreecommitdiff
path: root/pkg/webui/routes.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/routes.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/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/webui/routes.go b/pkg/webui/routes.go
index 9bf04ec..4330630 100644
--- a/pkg/webui/routes.go
+++ b/pkg/webui/routes.go
@@ -17,6 +17,7 @@ func addRoutes(
mux.Handle("POST /login", requireSession(handleLoginPOST(db)))
mux.Handle("GET /logout", requireLogin(handleLogoutGET(db)))
mux.Handle("GET /states", requireLogin(handleStatesGET(db)))
+ mux.Handle("GET /state/{id}", requireLogin(handleStateGET(db)))
mux.Handle("GET /static/", cache(http.FileServer(http.FS(staticFS))))
mux.Handle("GET /", requireLogin(handleIndexGET()))
}