mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
18 lines
388 B
Go
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,
|
|
})
|
|
}
|