diff --git a/src/main/java/org/qora/api/resource/BlockExplorerResource.java b/src/main/java/org/qora/api/resource/BlockExplorerResource.java deleted file mode 100644 index a0f5a06d..00000000 --- a/src/main/java/org/qora/api/resource/BlockExplorerResource.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.qora.api.resource; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.util.stream.Collectors; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; - -import io.swagger.v3.oas.annotations.Operation; - -@Path("/") -public class BlockExplorerResource { - - @Context - HttpServletRequest request; - - @GET - @Path("/block-explorer.html") - @Operation(hidden = true) - public String getBlockExplorer() { - ClassLoader loader = this.getClass().getClassLoader(); - try (InputStream inputStream = loader.getResourceAsStream("block-explorer.html")) { - if (inputStream == null) - return "block-explorer.html resource not found"; - - return new BufferedReader(new InputStreamReader(inputStream)).lines().collect(Collectors.joining("\n")); - } catch (IOException e) { - return "Error reading block-explorer.html resource"; - } - } - -} diff --git a/src/main/resources/block-explorer.html b/src/main/resources/block-explorer.html deleted file mode 100644 index db180ed1..00000000 --- a/src/main/resources/block-explorer.html +++ /dev/null @@ -1,776 +0,0 @@ - - - - Block Explorer - - - - - Making initial call to API... -

- If nothing happens then check API is running! - - \ No newline at end of file