summaryrefslogtreecommitdiff
path: root/pkg/webui/routes.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-23 22:06:46 +0100
committerJulien Dessaux2025-02-23 22:06:46 +0100
commita83296b79ac7eb851a44600fb7ccf6c1a200e2bc (patch)
tree25d69d9c8a0b4905761d6089acacc454fecf55dd /pkg/webui/routes.go
parentchore(tfstated): change database state id and version id formats to uuidv7 (diff)
downloadtfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.tar.gz
tfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.tar.bz2
tfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.zip
[webui] refactored states and versions routes
Diffstat (limited to 'pkg/webui/routes.go')
-rw-r--r--pkg/webui/routes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/webui/routes.go b/pkg/webui/routes.go
index 5c500d2..1fce700 100644
--- a/pkg/webui/routes.go
+++ b/pkg/webui/routes.go
@@ -20,8 +20,8 @@ func addRoutes(
mux.Handle("POST /settings", requireLogin(handleSettingsPOST(db)))
mux.Handle("GET /states", requireLogin(handleStatesGET(db)))
mux.Handle("POST /states", requireLogin(handleStatesPOST(db)))
- mux.Handle("GET /state/{id}", requireLogin(handleStateGET(db)))
+ mux.Handle("GET /states/{id}", requireLogin(handleStatesIdGET(db)))
mux.Handle("GET /static/", cache(http.FileServer(http.FS(staticFS))))
- mux.Handle("GET /version/{id}", requireLogin(handleVersionGET(db)))
+ mux.Handle("GET /versions/{id}", requireLogin(handleVersionsGET(db)))
mux.Handle("GET /", requireLogin(handleIndexGET()))
}