diff --git a/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java b/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java index 9891893..9167998 100644 --- a/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java +++ b/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java @@ -33,6 +33,7 @@ public static void main(String[] args) throws ParseException, org.apache.commons config.bundledPlugins.enableCors(cors -> { cors.addRule(CorsPluginConfig.CorsRule::anyHost); }); + config.router.contextPath = System.getenv("GREBI_CONTEXT_PATH"); }) .get("/api/v1/stats", ctx -> { ctx.contentType("application/json");