diff options
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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`) |