0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-14 19:13:01 +01:00
gitea/routers/api/v1
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
..
activitypub
admin Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
misc Fix markup render regression and fix some tests (#32640) 2024-11-26 03:04:55 +08:00
notify
org Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
packages
repo Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
settings
shared
swagger Implement update branch API (#32433) 2024-12-12 05:02:35 +00:00
user Move GetFeeds to service layer (#32526) 2024-11-29 17:53:49 +00:00
utils Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
api.go Implement update branch API (#32433) 2024-12-12 05:02:35 +00:00