Skip to content

Commit

Permalink
refactor: assets file support md
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Jul 18, 2024
1 parent 6c4ddfc commit 8293ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion center/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8293ca2

Please sign in to comment.