1
0
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:
Gerasimos (Makis) Maropoulos
2020-07-18 12:41:31 +03:00
parent e16abc96c6
commit fb8e677c08
3 changed files with 28 additions and 49 deletions

View File

@@ -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,