gitea/routers
Wiktor Kwapisiewicz 693db80296
api: Allow unauthenticated access to user's SSH keys
This patch relaxes constraints on getting user's SSH keys via the JSON
API. The same has been allowed by both GitHub and Gitlab and the output
is already readable via http://domain/user.keys endpoint.

The benefit of allowing it via the API are twofold: first this is
a structured output and second it can be CORS-enabled.

As a privacy precaution the `Title` property is set to an empty string
if the request is unauthenticated.

Fixes: https://github.com/go-gitea/gitea/issues/30681
2024-04-29 14:40:55 +02:00
..
api api: Allow unauthenticated access to user's SSH keys 2024-04-29 14:40:55 +02:00
common feat(api): implement branch/commit comparison API (#30349) 2024-04-16 11:45:04 +08:00
install Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
private Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-04-29 08:47:56 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-04-29 08:47:56 +00:00
init.go Add route handler info for debugging purpose (#30705) 2024-04-26 09:09:49 +00:00