use of io.hops.hopsworks.common.maintenance.Maintenance in project hopsworks by logicalclocks.
the class BannerService method findBanner.
@GET
@Produces(MediaType.APPLICATION_JSON)
@JWTNotRequired
public Response findBanner(@Context SecurityContext sc) {
Maintenance maintenance = maintenanceController.getMaintenance();
maintenance.setOtp(settings.getTwoFactorAuth());
return noCacheResponse.getNoCacheResponseBuilder(Response.Status.OK).entity(maintenance).build();
}
Aggregations