summaryrefslogtreecommitdiff
path: root/pkg/webui/routes.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-04 23:34:26 +0100
committerJulien Dessaux2025-02-04 23:34:26 +0100
commitfcc220612495a21067f9043396ba63062537ad63 (patch)
tree6ffb59e3f61fdc433a2f7762465e43f6d326d31d /pkg/webui/routes.go
parentchore(tfstated): change database account id format to uuidv7 (diff)
downloadtfstated-fcc220612495a21067f9043396ba63062537ad63.tar.gz
tfstated-fcc220612495a21067f9043396ba63062537ad63.tar.bz2
tfstated-fcc220612495a21067f9043396ba63062537ad63.zip
feat(webui): add state creation page
Diffstat (limited to 'pkg/webui/routes.go')
-rw-r--r--pkg/webui/routes.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/webui/routes.go b/pkg/webui/routes.go
index e84f33a..7ee7841 100644
--- a/pkg/webui/routes.go
+++ b/pkg/webui/routes.go
@@ -19,6 +19,8 @@ func addRoutes(
mux.Handle("GET /settings", requireLogin(handleSettingsGET(db)))
mux.Handle("POST /settings", requireLogin(handleSettingsPOST(db)))
mux.Handle("GET /states", requireLogin(handleStatesGET(db)))
+ mux.Handle("GET /states/new", requireLogin(handleStatesNewGET(db)))
+ mux.Handle("POST /states/new", requireLogin(handleStatesNewPOST(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)))