forked from Qortal/qortal
Removed API key requirement from GET /admin/status and GET /admin/mintingaccounts
This commit is contained in:
parent
5ba6f6f53e
commit
11e194292c
@ -137,10 +137,7 @@ public class AdminResource {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@SecurityRequirement(name = "apiKey")
|
|
||||||
public NodeStatus status() {
|
public NodeStatus status() {
|
||||||
Security.checkApiCallAllowed(request);
|
|
||||||
|
|
||||||
NodeStatus nodeStatus = new NodeStatus();
|
NodeStatus nodeStatus = new NodeStatus();
|
||||||
|
|
||||||
return nodeStatus;
|
return nodeStatus;
|
||||||
@ -252,9 +249,7 @@ public class AdminResource {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
||||||
@SecurityRequirement(name = "apiKey")
|
|
||||||
public List<MintingAccountData> getMintingAccounts() {
|
public List<MintingAccountData> getMintingAccounts() {
|
||||||
Security.checkApiCallAllowed(request);
|
|
||||||
|
|
||||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||||
List<MintingAccountData> mintingAccounts = repository.getAccountRepository().getMintingAccounts();
|
List<MintingAccountData> mintingAccounts = repository.getAccountRepository().getMintingAccounts();
|
||||||
|
Loading…
Reference in New Issue
Block a user