summaryrefslogtreecommitdiff
path: root/pkg/webui/routes.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-28 00:30:30 +0100
committerJulien Dessaux2025-01-28 00:30:30 +0100
commit21c8d6601a274262074e39845be24d8020d2e5aa (patch)
treecad793b4984574c0763e148fb2ac6008a11951a6 /pkg/webui/routes.go
parentfeat(webui): implement state versions list (diff)
downloadtfstated-21c8d6601a274262074e39845be24d8020d2e5aa.tar.gz
tfstated-21c8d6601a274262074e39845be24d8020d2e5aa.tar.bz2
tfstated-21c8d6601a274262074e39845be24d8020d2e5aa.zip
feat(webui): bootstrap state version page
Diffstat (limited to 'pkg/webui/routes.go')
-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 4330630..84017dd 100644
--- a/pkg/webui/routes.go
+++ b/pkg/webui/routes.go
@@ -19,5 +19,6 @@ func addRoutes(
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 /version/{id}", requireLogin(handleVersionGET(db)))
mux.Handle("GET /", requireLogin(handleIndexGET()))
}