1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00
Files
go-inbucket/web/root_controller.go
2012-10-24 09:48:56 -07:00

18 lines
388 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 RootStatus(w http.ResponseWriter, req *http.Request, ctx *Context) (err error) {
return RenderTemplate("root/status.html", w, map[string]interface{}{
"ctx": ctx,
})
}