Skip to content

Commit

Permalink
Serve images folder in router
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Mar 31, 2018
1 parent ab7cc7d commit acc8c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
ui.Register(g)

g.GET("/swagger", docs.Serve)
g.Static("/image", conf.UploadedImagesDir)
g.GET("/docs/*any", gin.WrapH(http.StripPrefix("/docs/", http.FileServer(swaggerui.GetBox()))))

g.Use(func(ctx *gin.Context) {
Expand Down

0 comments on commit acc8c4d

Please sign in to comment.