aboutsummaryrefslogtreecommitdiff
path: root/backend/section.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-22 15:07:55 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-22 15:07:55 +0100
commit84af6427d8205b1882b9f9df11ce394f96d6b792 (patch)
treeae51188d67616069300afd6a19300ff7ed23e7d3 /backend/section.go
parent93c4f9047426f9f56940ed2b733dcde2d98b0c0e (diff)
feat(backend): admin dashboard
Diffstat (limited to 'backend/section.go')
-rw-r--r--backend/section.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/section.go b/backend/section.go
index e2150cb..1b5ab9f 100644
--- a/backend/section.go
+++ b/backend/section.go
@@ -270,7 +270,7 @@ func (s *Section) handlePagination(w http.ResponseWriter, r *http.Request, maxLo
page, err = strconv.Atoi(rawPage)
if err != nil || page < 1 {
slog.Warn("invalid page number", "rawPage", rawPage)
- w.WriteHeader(http.StatusBadRequest)
+ http.Error(w, "Bad request", http.StatusBadRequest)
return nil
}
}