Closed
Description
Description
We're trying to write a script to unsubscribe (unwatch) users from all repos, but running into some issues. It looks like these API routes are broken in a couple of ways.
- First, I created a token with read + write access to all repos (non-admin user)

Then, using that token on a repo I own:
curl -X 'GET' \
'https://try.gitea.io/api/v1/repos/kdumontnu/template/subscription' \
-H 'accept: application/json' \
-H 'Authorization: ---'
returns a 500 error
Next, when I try "PUT" or "DELETE", I get a 401 error. "token is required"
. I should have access to this repo and I've provided all of the token routes.
Gitea Version
1.22-dev
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
try.gitea.io
Database
None