diff options
Diffstat (limited to 'ui/entry_category.go')
-rw-r--r-- | ui/entry_category.go | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ui/entry_category.go b/ui/entry_category.go index 795aaf1..283f015 100644 --- a/ui/entry_category.go +++ b/ui/entry_category.go @@ -25,17 +25,8 @@ func (c *Controller) ShowCategoryEntry(w http.ResponseWriter, r *http.Request) { return } - categoryID, err := request.IntParam(r, "categoryID") - if err != nil { - html.BadRequest(w, err) - return - } - - entryID, err := request.IntParam(r, "entryID") - if err != nil { - html.BadRequest(w, err) - return - } + categoryID := request.RouteInt64Param(r, "categoryID") + entryID := request.RouteInt64Param(r, "entryID") builder := c.store.NewEntryQueryBuilder(user.ID) builder.WithCategoryID(categoryID) |