mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
updated code structure
This commit is contained in:
@@ -10,12 +10,12 @@ func init() {
|
||||
}
|
||||
|
||||
var apiCmd = &cobra.Command{
|
||||
Use: "api",
|
||||
Short: "Start API server",
|
||||
Long: `Start API server of Crawlab which serves data to frontend`,
|
||||
Use: "api",
|
||||
Aliases: []string{"A"},
|
||||
Short: "Start API server",
|
||||
Long: `Start API server of Crawlab which serves data to frontend`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
api := apps.NewApi()
|
||||
api.Init()
|
||||
api.Run()
|
||||
apps.Start(api)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user