forked from Qortal/qortal
Removed API authentication when using the gateway, as that would defeat the purpose of it.
This commit is contained in:
parent
824d14e793
commit
b7a0a7eea4
@ -27,7 +27,6 @@ public class GatewayResource {
|
|||||||
@SecurityRequirement(name = "apiKey")
|
@SecurityRequirement(name = "apiKey")
|
||||||
public HttpServletResponse getPathByName(@PathParam("name") String name,
|
public HttpServletResponse getPathByName(@PathParam("name") String name,
|
||||||
@PathParam("path") String inPath) {
|
@PathParam("path") String inPath) {
|
||||||
Security.checkApiCallAllowed(request);
|
|
||||||
return this.get(name, ResourceIdType.NAME, Service.WEBSITE, inPath, null, "", true, true);
|
return this.get(name, ResourceIdType.NAME, Service.WEBSITE, inPath, null, "", true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +34,6 @@ public class GatewayResource {
|
|||||||
@Path("{name}")
|
@Path("{name}")
|
||||||
@SecurityRequirement(name = "apiKey")
|
@SecurityRequirement(name = "apiKey")
|
||||||
public HttpServletResponse getIndexByName(@PathParam("name") String name) {
|
public HttpServletResponse getIndexByName(@PathParam("name") String name) {
|
||||||
Security.checkApiCallAllowed(request);
|
|
||||||
return this.get(name, ResourceIdType.NAME, Service.WEBSITE, "/", null, "", true, true);
|
return this.get(name, ResourceIdType.NAME, Service.WEBSITE, "/", null, "", true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user