From 93f2ffc18d1d86bd2999533e8d904c92cb29bc1a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 8 Aug 2024 21:22:50 +0900 Subject: fix(backend): fix admin game edit page --- Makefile | 2 +- backend/admin/handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2361ac5..bf3b34c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ up: .PHONY: down down: - ${DOCKER_COMPOSE} down + ${DOCKER_COMPOSE} down --remove-orphans .PHONY: logs logs: diff --git a/backend/admin/handler.go b/backend/admin/handler.go index 111476b..b50b942 100644 --- a/backend/admin/handler.go +++ b/backend/admin/handler.go @@ -261,5 +261,5 @@ func (h *Handler) postGameEdit(c echo.Context) error { return echo.NewHTTPError(http.StatusInternalServerError, err.Error()) } - return c.NoContent(http.StatusNoContent) + return c.Redirect(http.StatusSeeOther, c.Request().URL.Path) } -- cgit v1.2.3-70-g09d2