From c296f4fed66288431fa7ec3a64f990beccd29eb1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 13 Nov 2020 20:51:07 +0800 Subject: Introduce go chi web framework as frontend of macaron, so that we can move routes from macaron to chi step by step (#7420) * When route cannot be found on chi, go to macaron * Stick chi version to 1.5.0 * Follow router log setting --- modules/public/dynamic.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/public/dynamic.go') diff --git a/modules/public/dynamic.go b/modules/public/dynamic.go index 07f83e1f6a..f1a4dbb1a3 100644 --- a/modules/public/dynamic.go +++ b/modules/public/dynamic.go @@ -6,11 +6,9 @@ package public -import ( - "gitea.com/macaron/macaron" -) +import "net/http" // Static implements the macaron static handler for serving assets. -func Static(opts *Options) macaron.Handler { +func Static(opts *Options) func(next http.Handler) http.Handler { return opts.staticHandler(opts.Directory) } -- cgit v1.2.3