zdravko/internal/server/handlers/incidents.go

16 lines
337 B
Go
Raw Normal View History

2024-02-23 08:36:13 +00:00
package handlers
import (
"net/http"
"github.com/mentos1386/zdravko/web/templates/components"
2024-02-23 08:36:13 +00:00
"github.com/labstack/echo/v4"
)
func (h *BaseHandler) Incidents(c echo.Context) error {
return c.Render(http.StatusOK, "incidents.tmpl", &components.Base{
NavbarActive: GetPageByTitle(Pages, "Incidents"),
Navbar: Pages,
})
}