Beispiel #1
0
func views(r *gin.Engine) {
	r.GET("/", func(c *gin.Context) {

		c.HTML(http.StatusOK, "index.html", gin.H{
			"title": "Tibor's Valgomat",
		})
	})
}
Beispiel #2
0
func Register(r *gin.Engine) {
	views(r)
	api(r.Group("/api"))
}