mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Default config for static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
08a173b476
commit
b8c52b0432
@ -22,6 +22,7 @@ type (
|
|||||||
|
|
||||||
// Enable HTML5 mode by forwarding all not-found requests to root so that
|
// Enable HTML5 mode by forwarding all not-found requests to root so that
|
||||||
// SPA (single-page application) can handle the routing.
|
// SPA (single-page application) can handle the routing.
|
||||||
|
// Optional. Default value false.
|
||||||
HTML5 bool `json:"html5"`
|
HTML5 bool `json:"html5"`
|
||||||
|
|
||||||
// Enable directory browsing.
|
// Enable directory browsing.
|
||||||
@ -33,9 +34,7 @@ type (
|
|||||||
var (
|
var (
|
||||||
// DefaultStaticConfig is the default static middleware config.
|
// DefaultStaticConfig is the default static middleware config.
|
||||||
DefaultStaticConfig = StaticConfig{
|
DefaultStaticConfig = StaticConfig{
|
||||||
Index: "index.html",
|
Index: "index.html",
|
||||||
HTML5: true,
|
|
||||||
Browse: false,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user