mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
16 lines
378 B
Go
16 lines
378 B
Go
// Package swag provides ...
|
|
package swag
|
|
|
|
import (
|
|
_ "github.com/eiblog/eiblog/pkg/core/backup/docs" // docs
|
|
|
|
"github.com/gin-gonic/gin"
|
|
swaggerFiles "github.com/swaggo/files"
|
|
ginSwagger "github.com/swaggo/gin-swagger"
|
|
)
|
|
|
|
// RegisterRoutes register routes
|
|
func RegisterRoutes(group gin.IRoutes) {
|
|
group.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
|
}
|