mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
document 404 responce and meaning (#11073)
This commit is contained in:
@@ -114,6 +114,8 @@ func IsWatching(ctx *context.APIContext) {
|
||||
// responses:
|
||||
// "200":
|
||||
// "$ref": "#/responses/WatchInfo"
|
||||
// "404":
|
||||
// description: User is not watching this repo or repo do not exist
|
||||
|
||||
if models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID) {
|
||||
ctx.JSON(http.StatusOK, api.WatchInfo{
|
||||
|
Reference in New Issue
Block a user