2022-10-17 16:32:31 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-12-14 21:03:47 +08:00
|
|
|
"fmt"
|
2023-01-04 22:31:51 +08:00
|
|
|
"os"
|
|
|
|
|
2022-12-14 21:03:47 +08:00
|
|
|
"github.com/1Panel-dev/1Panel/cmd/server/cmd"
|
2022-12-14 19:39:32 +08:00
|
|
|
_ "github.com/1Panel-dev/1Panel/cmd/server/docs"
|
2022-10-17 16:32:31 +08:00
|
|
|
)
|
|
|
|
|
2022-12-14 19:39:32 +08:00
|
|
|
// @title 1Panel
|
|
|
|
// @version 1.0
|
|
|
|
// @description 开源Linux面板
|
|
|
|
// @termsOfService http://swagger.io/terms/
|
|
|
|
// @license.name Apache 2.0
|
|
|
|
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
// @host localhost
|
|
|
|
// @BasePath /api/v1
|
|
|
|
|
2023-01-04 22:31:51 +08:00
|
|
|
//go:generate swag init -o ./docs -g main.go -d ../../backend/app -g ../../cmd/server/main.go
|
2022-10-17 16:32:31 +08:00
|
|
|
func main() {
|
2022-12-14 21:03:47 +08:00
|
|
|
if err := cmd.RootCmd.Execute(); err != nil {
|
|
|
|
fmt.Fprintln(os.Stderr, err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
2022-10-17 16:32:31 +08:00
|
|
|
}
|