1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

DirOptions.PushTargets: add example for https://github.com/kataras/iris/issues/1562

Former-commit-id: 940f07fdb1184266dc315441fb91afa5754092fa
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-16 11:42:45 +03:00
parent fba8492e78
commit baeff3e80b
22 changed files with 1145 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ var opts = iris.DirOptions{
// E.g. "/" (which serves the `IndexName` if not empty).
//
// Note: Requires running server under TLS,
// that's why we use ListenAndServeTLS below.
// that's why we use `iris.TLS` below.
PushTargets: map[string][]string{
"/": {
"/public/favicon.ico",