aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin')
-rw-r--r--backend/admin/handlers.go2
-rw-r--r--backend/admin/templates/dashboard.html3
2 files changed, 4 insertions, 1 deletions
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 @@
<p>
<a href="/admin/games">Games</a>
</p>
+<form method="post" action="/logout">
+ <button type="submit">Logout</button>
+</form>
{{ end }}