mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Improve Request to be more idiomatic
This commit is contained in:
parent
4fc18647ca
commit
25cbd65777
20 changed files with 80 additions and 77 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
// GetSubscriptions is the API handler to find subscriptions.
|
||||
func (c *Controller) GetSubscriptions(ctx *core.Context, request *core.Request, response *core.Response) {
|
||||
websiteURL, err := payload.DecodeURLPayload(request.GetBody())
|
||||
websiteURL, err := payload.DecodeURLPayload(request.Body())
|
||||
if err != nil {
|
||||
response.Json().BadRequest(err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue