DelegateToMacaron delegates other routes to macaron
LoggerHandler is a handler that will log the routing to the default gitea log
NewChi creates a chi Router
NewMacaron initializes Macaron instance.
NormalRoutes represents non install routes
Recovery returns a middleware that recovers from any panics and writes a 500 and a log if so. Although similar to macaron.Recovery() the main difference is that this error will be created with the gitea 500 page.
RegisterInstallRoute registers the install routes
RegisterMacaronInstallRoute registers the install routes
RegisterMacaronRoutes routes routes to Macaron
SignedUserName returns signed user's name via context FIXME currently no any data stored on chi.Context but macaron.Context, so this will return "" before we remove macaron totally