mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-02 16:31:11 +08:00
commit
4955fb9d03
1 changed files with 2 additions and 2 deletions
|
|
@ -244,7 +244,7 @@ func (engine *Engine) StaticFS(relativePath string, fs http.FileSystem) {
|
|||
relativePath += "/"
|
||||
}
|
||||
|
||||
fileServer := http.FileServer(fs)
|
||||
fileServer := http.StripPrefix(relativePath, http.FileServer(fs))
|
||||
engine.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer))
|
||||
}
|
||||
|
||||
|
|
@ -258,7 +258,7 @@ func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem) {
|
|||
relativePath += "/"
|
||||
}
|
||||
|
||||
fileServer := http.FileServer(fs)
|
||||
fileServer := http.StripPrefix(relativePath, http.FileServer(fs))
|
||||
group.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue