Skip to content

Commit

Permalink
add context path setting to api
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Jun 10, 2024
1 parent d32700a commit 58b1589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 58b1589

Please sign in to comment.