From d87507918f33b289ac4fc4dece8a54fa3aa34923 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 Aug 2024 17:24:36 +0900 Subject: feat(backend): add /logout to /admin/dashboard --- backend/admin/handlers.go | 2 +- backend/admin/templates/dashboard.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/admin') diff --git a/backend/admin/handlers.go b/backend/admin/handlers.go index 1c7995d..f81856c 100644 --- a/backend/admin/handlers.go +++ b/backend/admin/handlers.go @@ -236,5 +236,5 @@ func (h *AdminHandler) postGameEdit(c echo.Context) error { return echo.NewHTTPError(http.StatusInternalServerError, err.Error()) } - return c.String(http.StatusNoContent, "") + return c.NoContent(http.StatusNoContent) } diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html index 2d7e8ad..cdb8ba1 100644 --- a/backend/admin/templates/dashboard.html +++ b/backend/admin/templates/dashboard.html @@ -7,4 +7,7 @@

Games

+
+ +
{{ end }} -- cgit v1.2.3-70-g09d2