From 8293ca20be78280a9201897110bbfd85f1409c06 Mon Sep 17 00:00:00 2001 From: ning <710leo@gmail.com> Date: Thu, 18 Jul 2024 15:07:47 +0800 Subject: [PATCH] refactor: assets file support md --- center/router/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/center/router/router.go b/center/router/router.go index 6ad3f3596..4cdf875e9 100644 --- a/center/router/router.go +++ b/center/router/router.go @@ -114,7 +114,7 @@ func (rt *Router) configNoRoute(r *gin.Engine, fs *http.FileSystem) { suffix := arr[len(arr)-1] switch suffix { - case "png", "jpeg", "jpg", "svg", "ico", "gif", "css", "js", "html", "htm", "gz", "zip", "map", "ttf": + case "png", "jpeg", "jpg", "svg", "ico", "gif", "css", "js", "html", "htm", "gz", "zip", "map", "ttf", "md": if !rt.Center.UseFileAssets { c.FileFromFS(c.Request.URL.Path, *fs) } else {