1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-07 21:17:44 +03:00
gitea/routers/api
wxiaoguang 6d5aa9218e
Refactor request context (#32956)
Introduce RequestContext: is a short-lived context that is used to store
request-specific data.

RequestContext could be used to clean form tmp files, close context git
repo, and do some tracing in the future.

Then a lot of legacy code could be removed or improved. For example:
most `ctx.Repo.GitRepo.Close()` could be removed because the git repo
could be closed when the request is done.
2024-12-24 11:43:57 +08:00
..
actions Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
packages Add standard-compliant route to serve outdated R packages (#32783) 2024-12-11 16:20:04 +00:00
v1 Refactor request context (#32956) 2024-12-24 11:43:57 +08:00