diff --git a/apidoc/api_data.js b/apidoc/api_data.js index 616ab6b2..1591c54c 100644 --- a/apidoc/api_data.js +++ b/apidoc/api_data.js @@ -696,7 +696,7 @@ define({ "api": [ } }, { - "type": "post", + "type": "put", "url": "/update/", "title": "Update a Torrent", "version": "1.1.1", diff --git a/apidoc/api_data.json b/apidoc/api_data.json index ba0887ef..75f46a9e 100644 --- a/apidoc/api_data.json +++ b/apidoc/api_data.json @@ -696,7 +696,7 @@ } }, { - "type": "post", + "type": "put", "url": "/update/", "title": "Update a Torrent", "version": "1.1.1", diff --git a/controllers/api/api.go b/controllers/api/api.go index c0ac1a38..cc101bb5 100644 --- a/controllers/api/api.go +++ b/controllers/api/api.go @@ -300,7 +300,7 @@ func APIUploadHandler(c *gin.Context) { } /** - * @api {post} /update/ Update a Torrent + * @api {put} /update/ Update a Torrent * @apiVersion 1.1.1 * @apiName UpdateTorrent * @apiGroup Torrents @@ -564,7 +564,7 @@ func APIProfileHandler(c *gin.Context) { } /** - * @api {post} /user/ Get a private user profile + * @api {get} /user/ Get a private user profile * @apiVersion 1.1.1 * @apiName Private Profile * @apiGroup Users