Revert "feat: support swagger configuration (#46)" (#47)

This reverts commit 814845170e.
This commit is contained in:
pei
2019-03-23 19:16:08 +09:00
committed by GitHub
parent 814845170e
commit acdcd7f6da
4 changed files with 21 additions and 32 deletions
+1 -4
View File
@@ -25,10 +25,7 @@ import (
func main() {
r := gin.New()
config := &ginSwagger.Config{
URL: "http://localhost:8080/swagger/doc.json", //The url pointing to API definition
}
r.GET("/swagger/*any", ginSwagger.WrapHandler(config, swaggerFiles.Handler))
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
r.Run()
}