summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-04-23 17:42:57 +0200
committerxengineering <me@xengineering.eu>2024-05-09 12:19:30 +0200
commit2704cb76554b02f546bf3f9d2d11be98f2854b7b (patch)
treecd167fcc3a0c27ee2943c2d7abd3acc8741406f6 /server.go
parentc5e7551dc2da9798ff51d91aa238098f5ac4605f (diff)
downloadceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.tar
ceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.tar.zst
ceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.zip
Remove default recipe name
To avoid not clickable recipes on the /recipes page a default name used to be inserted on recipe creation. This was not a proper fix for the problem and also was annoying that the user first had to remove the default recipe name. This commit removes this default name.
Diffstat (limited to 'server.go')
-rw-r--r--server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.go b/server.go
index 570d8ed..7caf328 100644
--- a/server.go
+++ b/server.go
@@ -28,6 +28,7 @@ func NewServer(addr string) Server {
r.HandleFunc("/version", view.VersionRead(version)).Methods(`GET`)
r.HandleFunc("/recipes", view.RecipesRead).Methods(`GET`)
+ r.HandleFunc("/recipe/create", view.RecipeCreate).Methods(`GET`)
r.HandleFunc("/recipe", controller.RecipeCreate).Methods(`POST`)
r.HandleFunc("/recipe/{id:[0-9]+}", view.RecipeRead).Methods(`GET`)