refactor(server/api): migrate me/* + events preludes (A2 5/N)

This commit is contained in:
2026-05-08 08:44:50 -04:00
parent 79c3ec3659
commit 9dd5da514c
5 changed files with 5 additions and 15 deletions
+1 -3
View File
@@ -5,7 +5,6 @@ import (
"net/http"
"git.fabledsword.com/bvandeusen/minstrel/internal/apierror"
"git.fabledsword.com/bvandeusen/minstrel/internal/auth"
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
)
@@ -15,9 +14,8 @@ import (
// offset/limit; has_more = (len(rows) == limit) is a cheap heuristic
// that errs on the "true" side at the exact-end boundary.
func (h *handlers) handleGetMyHistory(w http.ResponseWriter, r *http.Request) {
user, ok := auth.UserFromContext(r.Context())
user, ok := requireUser(w, r)
if !ok {
writeErr(w, apierror.ErrUnauthorized)
return
}