diff options
Diffstat (limited to 'ui/category_entries.go')
-rw-r--r-- | ui/category_entries.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/category_entries.go b/ui/category_entries.go index ac39fa1..caa98cd 100644 --- a/ui/category_entries.go +++ b/ui/category_entries.go @@ -23,12 +23,7 @@ func (c *Controller) CategoryEntries(w http.ResponseWriter, r *http.Request) { return } - categoryID, err := request.IntParam(r, "categoryID") - if err != nil { - html.BadRequest(w, err) - return - } - + categoryID := request.RouteInt64Param(r, "categoryID") category, err := c.store.Category(request.UserID(r), categoryID) if err != nil { html.ServerError(w, err) |