bench-forgejo/routers/web
zeripath 9302eba971
DBContext is just a Context (#17100)
* DBContext is just a Context

This PR removes some of the specialness from the DBContext and makes it context
This allows us to simplify the GetEngine code to wrap around any context in future
and means that we can change our loadRepo(e Engine) functions to simply take contexts.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix unit tests

Signed-off-by: Andrew Thornton <art27@cantab.net>

* another place that needs to set the initial context

Signed-off-by: Andrew Thornton <art27@cantab.net>

* avoid race

Signed-off-by: Andrew Thornton <art27@cantab.net>

* change attachment error

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-23 23:45:36 +08:00
..
admin Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
explore Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
org DBContext is just a Context (#17100) 2021-09-23 23:45:36 +08:00
repo DBContext is just a Context (#17100) 2021-09-23 23:45:36 +08:00
user refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
base.go Allow setting X-FRAME-OPTIONS (#16643) 2021-08-06 16:47:10 -04:00
goget.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
home.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Use common sessioner for API and Web (#17027) 2021-09-12 19:35:38 +02:00