Skip to content

Commit

Permalink
fix: use box.New instead of box.NewBox
Browse files Browse the repository at this point in the history
packr.NewBox has been deprecated.
  • Loading branch information
sundowndev committed Mar 19, 2020
1 parent fafc04b commit 38d1ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Serve(router *gin.Engine, port int, disableClient bool) *gin.Engine {
GET("/numbers/:number/scan/ovh", ValidateScanURL, ovhScan)

if !disableClient {
box := packr.NewBox("../client/dist")
box := packr.New("static", "../client/dist")
registerClientRoute(router, box)
}

Expand Down

0 comments on commit 38d1ec9

Please sign in to comment.