Deploy Bots API #28
@@ -58,13 +58,16 @@ func runAPI(ctx *cli.Context) error {
|
||||
|
||||
// Data service client
|
||||
storageUrl := ctx.String("storage-host")
|
||||
httpClient := http.Client{
|
||||
Timeout: 10,
|
||||
}
|
||||
|
||||
return api.NewRouter(
|
||||
api.WithContext(ctx),
|
||||
api.WithPort(ctx.Int("port")),
|
||||
api.WithDevClient(devConn),
|
||||
api.WithDataClient(dataConn),
|
||||
api.WithHttpClient(&http.Client{}),
|
||||
api.WithHttpClient(&httpClient),
|
||||
api.WithStorageUrl(storageUrl),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user