Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 498 Bytes
package example;
import io.exchangeratesapi.ExchangeratesApi;
import io.exchangeratesapi.ForeignExchangeReferenceRates;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.reactivex.Single;
import javax.inject.Inject;
@Controller
public class ExchangeRatesController {
@Inject
private ExchangeratesApi exchangeratesApi;
@Get
public Single<ForeignExchangeReferenceRates> index() {
return exchangeratesApi.latest();
}
}
You can’t perform that action at this time.