1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-07 00:14:25 +00:00
gitea/routers/common
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
..
auth.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
compare.go feat(api): implement branch/commit comparison API (#30349) 2024-04-16 11:45:04 +08:00
db.go Refactor the DB migration system slightly (#32344) 2024-10-27 19:54:35 +08:00
deadline.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
errpage_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
errpage.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
lfs.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +08:00
markup.go Fix markup render regression and fix some tests (#32640) 2024-11-26 03:04:55 +08:00
middleware.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
redirect.go Refactor AppURL usage (#30885) 2024-05-07 08:26:13 +00:00
serve.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00