mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- 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.
17 lines
333 B
Go
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)
|
|
}
|