Skip to content

Commit

Permalink
listenapi removed and replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
airvine-leicom committed Mar 30, 2023
1 parent aae3aaf commit d7b142e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,7 @@ func occupancyToInt(occupancy string) int64 {
}
}

// listenApi starts the API server and listen for requests
func listenApi() {
http.ListenApiWithOs(&nethttp.Server{Addr: ":" + common.Getenv("API_SERVER_PORT", "3000"), Handler: apiserver.NewRouter(
apiserver.NewConfigurationApiController(apiservices.NewConfigurationApiService()),
apiserver.NewVersionApiController(apiservices.NewVersionApiService()),
apiserver.NewCustomizationApiController(apiservices.NewCustomizationApiService()),
apiserver.NewSpacesApiController(apiservices.NewSpacesApiService()),
)})
}

func listenApiRequests() {
err := nethttp.ListenAndServe(":"+common.Getenv("API_SERVER_PORT", "3000"), apiserver.NewRouter(
apiserver.NewConfigurationApiController(apiservices.NewConfigurationApiService()),
Expand Down

0 comments on commit d7b142e

Please sign in to comment.