package main

import (
	"github.com/gin-gonic/gin"
	swaggerFiles "github.com/swaggo/files"
	"github.com/swaggo/gin-swagger"

	_ "github.com/tidbcloud/idl/http/docs"
)

// TiDB Cloud API server
//
//	@title			TiDB Cloud API
//	@version		1.0
//	@description	This API provides a set of endpoints to manage and interact with TiDB Cloud services, including clusters and other related resources.
//	@BasePath		/api/v1
func main() {
	router := gin.Default()

	// Register Swagger middleware
	router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))

	_ = router.Run(":8080")
}
