You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
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>
3 years ago
..
admin Close the gitrepo when deleting the repository (#15876) 3 years ago
api/v1 api: fix overly strict edit pr permissions (#15900) 3 years ago
dev [refactor] replace int with httpStatusCodes (#15282) 3 years ago
events Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
org Unified link creation. (#15619) 3 years ago
private add a new internal hook to save ssh log (#15787) 3 years ago
repo Add links to toggle WIP status (#14677) 3 years ago
routes Improve assets handler middleware (#15961) 3 years ago
user Fix goth user infer bug (#15821) 3 years ago
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 3 years ago
home.go [refactor] replace int with httpStatusCodes (#15282) 3 years ago
init.go Refactor renders (#15175) 3 years ago
install.go Move modules/forms to services/forms (#15305) 3 years ago
metrics.go Move metrics from macaron to chi (#13601) 4 years ago
swagger_json.go [refactor] replace int with httpStatusCodes (#15282) 3 years ago