2022-10-17 08:32:31 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-07-22 08:14:59 +00:00
|
|
|
_ "net/http/pprof"
|
2023-01-04 14:31:51 +00:00
|
|
|
|
2024-07-23 02:11:43 +00:00
|
|
|
"github.com/1Panel-dev/1Panel/backend/server"
|
2022-12-14 11:39:32 +00:00
|
|
|
_ "github.com/1Panel-dev/1Panel/cmd/server/docs"
|
2022-10-17 08:32:31 +00:00
|
|
|
)
|
|
|
|
|
2022-12-14 11:39:32 +00: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-05 03:57:03 +00:00
|
|
|
//go:generate swag init -o ./docs -g main.go -d ../../backend -g ../cmd/server/main.go
|
2022-10-17 08:32:31 +00:00
|
|
|
func main() {
|
2024-07-22 08:14:59 +00:00
|
|
|
server.Start()
|
2022-10-17 08:32:31 +00:00
|
|
|
}
|