Combine error templates.

This commit is contained in:
mikestefanello 2021-12-11 16:06:28 -05:00
parent 3a9f0d1879
commit 58e75cf7a6
8 changed files with 24 additions and 18 deletions

View file

@ -41,6 +41,7 @@ type Page struct {
MaxAge time.Duration
Tags []string
}
RequestID string
}
func NewPage(c echo.Context) Page {
@ -51,6 +52,7 @@ func NewPage(c echo.Context) Page {
StatusCode: http.StatusOK,
Pager: pager.NewPager(c, DefaultItemsPerPage),
Headers: make(map[string]string),
RequestID: c.Response().Header().Get(echo.HeaderXRequestID),
}
p.IsHome = p.Path == "/"