Open platform to collect and prioritize feedback
fixes #21
goenning12d1354c7a22
diff --git a/handler/index.go b/handler/index.goindex 4d728480d..a46b73efd 100644--- a/handler/index.go+++ b/handler/index.go@@ -19,7 +19,7 @@ func (h indexHandlder) get() echo.HandlerFunc {return func(c echo.Context) error {tenant := c.Get("Tenant").(*model.Tenant)ideas, _ := h.ctx.Idea.GetAll(tenant.ID)- return c.Render(200, "index.html", map[string]interface{}{+ return c.Render(200, "index.html", echo.Map{"Tenant": tenant,"Ideas": ideas,})diff --git a/handler/status.go b/handler/status.goindex 67fa32f91..ac6b274c6 100644--- a/handler/status.go+++ b/handler/status.go@@ -20,9 +20,9 @@ func Status(ctx *context.WchyContext) echo.HandlerFunc {func (h statusHandler) get() echo.HandlerFunc {return func(c echo.Context) error {- return c.JSON(http.StatusOK, map[string]interface{}{+ return c.JSON(http.StatusOK, echo.Map{"build": h.ctx.Settings.BuildTime,- "healthy": map[string]interface{}{+ "healthy": echo.Map{"database": h.ctx.Health.IsDatabaseOnline(),},"version": runtime.Version(),