diff options
author | Julien Dessaux | 2025-01-28 00:30:30 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-28 00:30:30 +0100 |
commit | 21c8d6601a274262074e39845be24d8020d2e5aa (patch) | |
tree | cad793b4984574c0763e148fb2ac6008a11951a6 /pkg/webui/routes.go | |
parent | feat(webui): implement state versions list (diff) | |
download | tfstated-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.go | 1 |
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())) } |