forgejo/routers
Gusted c89e0735fa
[GITEA] Fix /issues/search endpoint
- The endpoint was moved from being an API endpoint to an web endpoint
with JSON result. However the API context isn't the same as the web
context, for example the `ctx.Error` only takes in the first two
arguments into consideration and doesn't do logging, which is not the
same behavior as the API context where there's three arguments and does
do logging and only reveal the function + error if the user is admin.
- Remove any details in the error message and do the logging seperatly,
this is somewhat consistent with how other API endpoints behave.
- Ref: https://codeberg.org/forgejo/forgejo/issues/1998

(cherry picked from commit fe71e32ace)
2024-01-01 15:36:38 +01:00
..
api [GITEA] Revert "Deprecate query string auth tokens (#28390)" 2024-01-01 15:36:17 +01:00
common Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
install [GITEA] Add password length check on install page 2024-01-01 15:20:55 +01:00
private [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] Fix /issues/search endpoint 2024-01-01 15:36:38 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-01 13:50:26 +01:00