mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
add support for fs.FS, embed.FS (in addition of string and http.FileSystem) for i18n locales and view engine's templates
This commit is contained in:
@@ -635,7 +635,7 @@ func (api *APIBuilder) HandleDir(requestPath string, fsOrDir interface{}, opts .
|
||||
options = opts[0]
|
||||
}
|
||||
|
||||
fs := context.ResolveFS(fsOrDir)
|
||||
fs := context.ResolveHTTPFS(fsOrDir)
|
||||
h := FileServer(fs, options)
|
||||
description := "file server"
|
||||
if d, ok := fs.(http.Dir); ok {
|
||||
|
||||
Reference in New Issue
Block a user