Skip to content

Commit

Permalink
Fixing too large static resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Depado committed Feb 21, 2016
1 parent cb0cbd2 commit 75a443d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -23,3 +23,4 @@ _testmain.go
*.test *.test
*.prof *.prof
portfolio portfolio
rice-box.go
3 changes: 1 addition & 2 deletions main.go
Expand Up @@ -14,10 +14,9 @@ func main() {
var err error var err error


tbox, _ := rice.FindBox("templates") tbox, _ := rice.FindBox("templates")
abox, _ := rice.FindBox("assets")


r := gin.Default() r := gin.Default()
if err = utils.InitAssetsTemplates(r, tbox, abox, "index.html"); err != nil { if err = utils.InitAssetsTemplates(r, tbox, nil, "index.html"); err != nil {
log.Fatal(err) log.Fatal(err)
} }
r.GET("/", func(c *gin.Context) { r.GET("/", func(c *gin.Context) {
Expand Down

0 comments on commit 75a443d

Please sign in to comment.