// Serve starts the api.
// Binds IP using HOST env or 0.0.0.0
// Binds to port using PORT env or 8000
Serve starts the api.
Binds IP using HOST env or 0.0.0.0
Binds to port using PORT env or 8000
// Serve starts the api . // Binds IP using HOST env or 0 . 0 . 0 . 0 // Binds to port using PORT env or 8000
func (as ApiService) Serve() {
	port := os.Getenv("PORT")
	if port == "" {
		port = "8000"
	}
	host := os.Getenv("HOST")
	if host == "" {
		host = "0.0.0.0"
	}
	address := host + ":" + port
	as.echo.Logger.Fatal(as.echo.Start(address))
}
func ( as ApiService ) Serve ( ) { port := os . Getenv ( " " ) if port == " " { port = " " } host := os . Getenv ( " " ) if host == " " { host = " " } address := host + " " + port as . echo . Logger . Fatal ( as . echo . Start ( address ) ) }
Serve starts the api.
Serve starts the api .
// Start server