1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00
Files
go-inbucket/web/root_controller.go
2012-10-23 13:43:40 -07:00

18 lines
386 B
Go

package web
import (
"net/http"
)
func RootIndex(w http.ResponseWriter, req *http.Request, ctx *Context) (err error) {
return RenderTemplate("root/index.html", w, map[string]interface{}{
"ctx": ctx,
})
}
func RootAbout(w http.ResponseWriter, req *http.Request, ctx *Context) (err error) {
return RenderTemplate("root/about.html", w, map[string]interface{}{
"ctx": ctx,
})
}