gitea/routers/web
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
..
admin Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
auth Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
devtest Add auto-expanding running actions step (#30058) 2024-12-22 18:57:17 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
feed Move GetFeeds to service layer (#32526) 2024-11-29 17:53:49 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
repo Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
shared Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) 2024-12-23 09:59:16 +00:00
user Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
base.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 2024-10-31 15:28:25 +00:00
githttp.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +08:00
goget.go Refactor RepoRefByType (#32413) 2024-11-05 06:35:54 +00:00
home.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
webfinger.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00