gitea/routers
zeripath 62dcf1a6fb
Add NotFound handler (#18062)
PR #17997 means that urls with terminal '/' are no longer immediately mapped
to the url without a terminal slash. However, it has revealed that the NotFound handler
appears to have been lost.

This PR adds back in a NotFound handler that simply redirects to a path without the
terminal slash or runs the NotFound handler.

Fix #18060

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-22 10:39:28 +00:00
..
api/v1 Add API to get file commit history (#17652) 2021-12-22 06:17:33 +00:00
common Update chi/middleware to chi/v5/middleware (#17888) 2021-12-02 21:58:08 +01:00
install Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
private Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
utils A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
web Add NotFound handler (#18062) 2021-12-22 10:39:28 +00:00
init.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00