|
@@ -5,12 +5,10 @@ func (g *goDash) setupRouter() {
|
|
|
g.router.GET("/ws", g.ws)
|
|
|
g.router.GET("/robots.txt", robots)
|
|
|
|
|
|
- static := g.router.Group("/static")
|
|
|
- static.Use(longCacheLifetime)
|
|
|
+ static := g.router.Group("/static", longCacheLifetime)
|
|
|
static.Static("/", "static")
|
|
|
|
|
|
- storage := g.router.Group("/storage")
|
|
|
- storage.Use(longCacheLifetime)
|
|
|
+ storage := g.router.Group("/storage", longCacheLifetime)
|
|
|
storage.Static("/icons", "storage/icons")
|
|
|
|
|
|
g.router.RouteNotFound("/*", redirectHome)
|