mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
PushTargetRegexp: simplify code
rel to: https://github.com/kataras/iris/issues/1562#issuecomment-660415246 Former-commit-id: da04ae0543e9b743cd4989ded5983ae15316a879
This commit is contained in:
@@ -24,6 +24,11 @@ var opts = iris.DirOptions{
|
||||
// ^ Relative to the index, if need absolute ones start with a slash ('/').
|
||||
},
|
||||
},
|
||||
// OR:
|
||||
// PushTargetsRegexp: map[string]*regexp.Regexp{
|
||||
// "/": iris.MatchCommonAssets,
|
||||
// "/app2/app2app3": iris.MatchCommonAssets,
|
||||
// },
|
||||
Compress: false, // SHOULD be set to false, files already compressed.
|
||||
ShowList: true,
|
||||
Asset: GzipAsset,
|
||||
|
||||
Reference in New Issue
Block a user