mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
610 B
29 lines
610 B
4 months ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
_ "net/http/pprof"
|
||
|
|
||
|
"github.com/1Panel-dev/1Panel/core/cmd/server/cmd"
|
||
|
_ "github.com/1Panel-dev/1Panel/core/cmd/server/docs"
|
||
|
)
|
||
|
|
||
|
// @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
|
||
|
|
||
|
//go:generate swag init -o ./docs -g main.go -d ../../backend -g ../cmd/server/main.go
|
||
|
func main() {
|
||
|
if err := cmd.RootCmd.Execute(); err != nil {
|
||
|
fmt.Fprintln(os.Stderr, err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|