zdravko/internal/server/handlers/404.go

16 lines
305 B
Go
Raw Normal View History

package handlers
import (
"net/http"
"github.com/mentos1386/zdravko/web/templates/components"
"github.com/labstack/echo/v4"
)
func (h *BaseHandler) Error404(c echo.Context) error {
return c.Render(http.StatusNotFound, "404.tmpl", &components.Base{
NavbarActive: nil,
Navbar: Pages,
})
}