mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Improve request package and add more unit tests
This commit is contained in:
parent
844680e573
commit
9d08139f43
49 changed files with 916 additions and 400 deletions
|
@ -15,12 +15,7 @@ import (
|
|||
|
||||
// ShowIcon shows the feed icon.
|
||||
func (c *Controller) ShowIcon(w http.ResponseWriter, r *http.Request) {
|
||||
iconID, err := request.IntParam(r, "iconID")
|
||||
if err != nil {
|
||||
html.BadRequest(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
iconID := request.RouteInt64Param(r, "iconID")
|
||||
icon, err := c.store.IconByID(iconID)
|
||||
if err != nil {
|
||||
html.ServerError(w, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue