Esempio n. 1
0
File: main.go Progetto: goarne/blog
func createListArticleHtmlRoute() *web.Route {
	r := web.NewRoute()
	r.Path("/blog/article/list/")
	r.Method("GET")
	r.Header("Accept", "html")
	r.Handler(handler.NewHtmlTemplateHandler())
	return r
}
Esempio n. 2
0
File: main.go Progetto: goarne/blog
func createFindArticleHtmlRoute() *web.Route {
	r := web.NewRoute()
	r.Path("/article/{id}")
	r.Header("Accept", "html")
	r.Method("GET")
	r.Handler(handler.NewHtmlTemplateHandler())
	return r
}
Esempio n. 3
0
File: main.go Progetto: goarne/blog
//Creates a html route
func createNewArticleHtmlRoute() *web.Route {
	r := web.NewRoute()
	r.Path("/new_article.html")
	r.Method("POST")
	r.Header("Accept", "html")
	r.Handler(handler.NewHtmlTemplateHandler())
	return r
}