bench-forgejo/routers/routes
Lunny Xiao effad26c0e
Improve assets handler middleware (#15961)
* Use route to serve assets but not middleware

* Fix build error with bindata tag

* convert path to absolute

* fix build

* reduce function stack

* Add tests for assets

* Remove test for assets because they are not generated

* Use a http function to serve assets

* Still use middleware to serve assets then less middleware stack for assets

* Move serveContent to original position

* remove unnecessary blank line change

* Fix bug for /assets* requests

* clean code

Co-authored-by: zeripath <art27@cantab.net>
2021-05-30 18:25:11 +08:00
..
base.go Prevent double-login for Git HTTP and LFS and simplify login (#15303) 2021-05-15 17:32:09 +02:00
goget.go Return go-get info on subdirs (#15642) 2021-05-09 22:50:06 +01:00
install.go Improve assets handler middleware (#15961) 2021-05-30 18:25:11 +08:00
web.go Improve assets handler middleware (#15961) 2021-05-30 18:25:11 +08:00