Files
crawlab/core/controllers/openapi.go
Marvin Zhang bc5e6273b8 chore: update dependencies and refactor imports
- Updated various dependencies in go.mod and go.sum for improved stability and performance.
- Replaced references to the old fizz package with the new crawlab-team/fizz package in multiple files.
- Adjusted indirect dependencies to their latest versions for better compatibility.
- Enhanced overall code clarity by standardizing import paths across the project.
2025-03-17 12:08:35 +08:00

17 lines
333 B
Go

package controllers
import (
"github.com/crawlab-team/fizz/openapi"
"github.com/gin-gonic/gin"
)
func GetOpenAPI(c *gin.Context) {
info := &openapi.Info{
Title: "Crawlab API",
Description: "REST API for Crawlab",
Version: "0.7.0",
}
handleFunc := globalWrapper.GetFizz().OpenAPI(info, "json")
handleFunc(c)
}