package routes import ( "github.com/gin-gonic/gin" "gitlab.com/gabrielgio/midr/controller" ) func HandleRequests() { r := gin.Default() r.LoadHTMLGlob("templates/*") r.GET("/", controller.GetEntries) r.GET("entries/", controller.GetEntry) r.POST("entries/", controller.CreateEntry) r.GET("entries/:id", controller.GetEntry) r.POST("entries/:id", controller.UpdateEntry) r.DELETE("entries/:id", controller.DeleteEntry) r.Run(":8000") }