From af57a831e803294a6564661f7b7373107d13854f Mon Sep 17 00:00:00 2001 From: Mateusz Szczygiel Date: Mon, 21 Aug 2023 15:25:45 +0200 Subject: [PATCH] Testing --- hermes-console-vue/yarn.lock | 8 ++++---- .../tech/hermes/management/api/UiResource.java | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/UiResource.java diff --git a/hermes-console-vue/yarn.lock b/hermes-console-vue/yarn.lock index 8efb916664..2a36126c40 100644 --- a/hermes-console-vue/yarn.lock +++ b/hermes-console-vue/yarn.lock @@ -1041,7 +1041,7 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base64-arraybuffer@^1.0.2: +base64-arraybuffer@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#1c37589a7c4b0746e34bd1feb951da2df01c1bdc" integrity sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ== @@ -2867,7 +2867,7 @@ jsonc-parser@^3.2.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== -jwt-decode@^3.1.2: +jwt-decode@3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59" integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A== @@ -3488,7 +3488,7 @@ pify@^3.0.0: resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== -pinia-plugin-persistedstate@^3.2.0: +pinia-plugin-persistedstate@3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.0.tgz#9932ca2ae88aa6c0d6763bebc6447d7bd1f097d0" integrity sha512-tZbNGf2vjAQcIm7alK40sE51Qu/m9oWr+rEgNm/2AWr1huFxj72CjvpQcIQzMknDBJEkQznCLAGtJTIcLKrKdw== @@ -3621,7 +3621,7 @@ qs@6.11.0: dependencies: side-channel "^1.0.4" -query-string@^8.1.0: +query-string@8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/query-string/-/query-string-8.1.0.tgz#e7f95367737219544cd360a11a4f4ca03836e115" integrity sha512-BFQeWxJOZxZGix7y+SByG3F36dA0AbTy9o6pSmKFcFz7DAj0re9Frkty3saBn3nHo3D0oZJ/+rx3r8H8r8Jbpw== diff --git a/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/UiResource.java b/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/UiResource.java new file mode 100644 index 0000000000..6876248077 --- /dev/null +++ b/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/UiResource.java @@ -0,0 +1,17 @@ +package pl.allegro.tech.hermes.management.api; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import org.glassfish.jersey.server.mvc.Viewable; + +import static jakarta.ws.rs.core.MediaType.TEXT_HTML; + +@Path("/") +public class UiResource { + @GET + @Produces(TEXT_HTML) + public Viewable getIndex() { + return new Viewable("/index.html"); + } +}