use of io.pravega.controller.server.rest.v1.ApiV1 in project bisq-api by mrosseel.
the class BisqApiApplication method run.
@Override
public void run(ApiConfiguration configuration, Environment environment) {
BisqProxy bisqProxy = new BisqProxy(injector, shutdown);
preferences.readPersisted();
setupCors(environment);
setupAuth(environment);
environment.jersey().register(MultiPartFeature.class);
setupHostAndPort(configuration, injector.getInstance(ApiEnvironment.class));
final JerseyEnvironment jerseyEnvironment = environment.jersey();
jerseyEnvironment.register(new ApiV1(bisqProxy));
ExceptionMappers.register(jerseyEnvironment);
environment.healthChecks().register("currency list size", new CurrencyListHealthCheck(bisqProxy));
}
use of io.pravega.controller.server.rest.v1.ApiV1 in project bisq-api by mrosseel.
the class BisqApiApplication method run.
@Override
public void run(ApiConfiguration configuration, Environment environment) {
BisqProxy bisqProxy = new BisqProxy(injector, accountAgeWitnessService, arbitratorManager, walletService, tradeManager, openOfferManager, offerBookService, p2PService, keyRing, user, feeService, preferences, bsqWalletService, walletsSetup, closedTradableManager, failedTradesManager, useDevPrivilegeKeys);
preferences.readPersisted();
setupCors(environment);
final JerseyEnvironment jerseyEnvironment = environment.jersey();
jerseyEnvironment.register(new ApiV1(bisqProxy));
ExceptionMappers.register(jerseyEnvironment);
environment.healthChecks().register("currency list size", new CurrencyListHealthCheck(bisqProxy));
}
Aggregations