Skip to content

Commit

Permalink
Merge pull request #1 from ildarusmanov/patch-1
Browse files Browse the repository at this point in the history
Fix panic
  • Loading branch information
kpacha authored Jan 31, 2019
2 parents 053b842 + 6086c3b commit 5c37684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/devopsfaith/krakend/config"
"github.com/devopsfaith/krakend/logging"
"github.com/devopsfaith/krakend/proxy"
"github.com/devopsfaith/krakend/router"
krakendgin "github.com/devopsfaith/krakend/router/gin"
)

Expand Down Expand Up @@ -67,6 +68,7 @@ func main() {
HandlerFactory: func(configuration *config.EndpointConfig, proxy proxy.Proxy) gin.HandlerFunc {
return cache.CachePage(store, configuration.CacheTTL, krakendgin.EndpointHandler(configuration, proxy))
},
RunServer: router.RunServer,
})

routerFactory.New().Run(serviceConfig)
Expand Down

0 comments on commit 5c37684

Please sign in to comment.