mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
18 lines
342 B
2 years ago
|
//go:build docs
|
||
|
// +build docs
|
||
|
|
||
2 years ago
|
package docs
|
||
2 years ago
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"github.com/rocboss/paopao-ce/docs/openapi"
|
||
2 years ago
|
"github.com/rocboss/paopao-ce/pkg/cfg"
|
||
2 years ago
|
)
|
||
|
|
||
2 years ago
|
// RegisterDocs register docs asset route
|
||
|
func RegisterDocs(e *gin.Engine) {
|
||
2 years ago
|
cfg.Be("Docs:OpenAPI", func() {
|
||
2 years ago
|
e.StaticFS("/docs/openapi", openapi.NewFileSystem())
|
||
2 years ago
|
})
|
||
2 years ago
|
}
|