Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 751 Bytes
package io.heterogeneousmicroservices.quarkusservice.web
import io.heterogeneousmicroservices.quarkusservice.service.ApplicationInfoService
import javax.inject.Inject
import javax.ws.rs.*
import javax.ws.rs.core.MediaType
import javax.ws.rs.core.Response
@Path("/application-info")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
class ApplicationInfoResource(
@Inject private val applicationInfoService: ApplicationInfoService
) {
@GET
fun get(@QueryParam("request-to") requestTo: String?): Response =
Response.ok(applicationInfoService.get(requestTo)).build()
@GET
@Path("/logo")
@Produces("image/png")
fun logo(): Response = Response.ok(applicationInfoService.getLogo()).build()
}
You can’t perform that action at this time.