Commit 71792d69 by Guangzhe Huang Committed by Torkel Ödegaard

Cleanup: use the local variable (#20767)

Signed-off-by: huanggze <loganhuang@yunify.com>
parent f2574f49
......@@ -285,7 +285,7 @@ func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
for _, route := range plugins.StaticRoutes {
pluginRoute := path.Join("/public/plugins/", route.PluginId)
hs.log.Debug("Plugins: Adding route", "route", pluginRoute, "dir", route.Directory)
hs.mapStatic(hs.macaron, route.Directory, "", pluginRoute)
hs.mapStatic(m, route.Directory, "", pluginRoute)
}
hs.mapStatic(m, setting.StaticRootPath, "build", "public/build")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment