Commit 2889a103 authored by Your Name's avatar Your Name

update codes

parent 4748c851
......@@ -25,8 +25,6 @@ import (
"github.com/odysseus/payment/cachedata"
"github.com/odysseus/payment/model"
"github.com/gofiber/contrib/swagger"
)
var (
......@@ -315,22 +313,7 @@ func main() {
go recordUUID()
// app.Use(swagger.New(swagger.Config{
// BasePath: "/api/v1/",
// FilePath: "./docs/v1/swagger.json",
// Path: "docs",
// }))
cfg := swagger.Config{
BasePath: "/swagger",
FilePath: "./docs/swagger.json",
Path: "swagger",
Title: "Swagger API Docs",
}
app.Use(swagger.New(cfg))
cache := newCache()
_ = cache
v1 := app.Group("/v1")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment