forked from Qortal/qortal
Added GET /arbitrary/relaymode API endpoint, which returns whether relay mode is enabled in the settings or not.
This commit is contained in:
parent
d8cbec41d2
commit
67e424a32a
@ -328,6 +328,23 @@ public class ArbitraryResource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/relaymode")
|
||||||
|
@Operation(
|
||||||
|
summary = "Returns whether relay mode is enabled or not",
|
||||||
|
responses = {
|
||||||
|
@ApiResponse(
|
||||||
|
content = @Content(mediaType = MediaType.TEXT_PLAIN, schema = @Schema(type = "boolean"))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
||||||
|
public boolean getRelayMode() {
|
||||||
|
Security.checkApiCallAllowed(request);
|
||||||
|
|
||||||
|
return Settings.getInstance().isRelayModeEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/hosted/transactions")
|
@Path("/hosted/transactions")
|
||||||
@Operation(
|
@Operation(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user