diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -11,6 +11,7 @@ import (  	"xengineering.eu/ceres/model"  	"xengineering.eu/ceres/view" +	"xengineering.eu/ceres/controller"  	"github.com/gorilla/mux"  ) @@ -45,6 +46,7 @@ func startServer(addr string) *http.Server {  		Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static))))  	r.HandleFunc("/recipes", view.Recipes).Methods(`GET`)  	r.HandleFunc("/recipe/{id:[0-9]+}", view.Recipe).Methods(`GET`) +	r.HandleFunc("/recipe", controller.Recipe).Methods(`POST`)  	r.HandleFunc("/favicon.ico", view.Favicon).Methods(`GET`)  	r.HandleFunc("/", view.Index).Methods(`GET`) | 
