add initial application structure with configuration, logging, and health check endpoints

This commit is contained in:
kever
2026-01-15 22:48:28 +08:00
parent fe67f09e72
commit 2efefc7e05
24 changed files with 178 additions and 83 deletions

View File

@@ -43,7 +43,7 @@ func (h *HeroController) GetByID(c echo.Context) error {
hero, err := h.svc.GetByID(c.Request().Context(), id)
if err != nil {
if err == sql.ErrNoRows {
return echo.NewHTTPError(http.StatusNotFound, "hero not found")
return c.JSON(http.StatusOK, vo.OK(nil))
}
return err
}