diff options
author | Julien Dessaux | 2025-02-04 23:34:26 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-04 23:34:26 +0100 |
commit | fcc220612495a21067f9043396ba63062537ad63 (patch) | |
tree | 6ffb59e3f61fdc433a2f7762465e43f6d326d31d /pkg/webui/routes.go | |
parent | chore(tfstated): change database account id format to uuidv7 (diff) | |
download | tfstated-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.go | 2 |
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))) |