diff --git a/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java b/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java index bac3ee2..fa0897d 100644 --- a/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java +++ b/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java @@ -25,7 +25,7 @@ public class MyWebConfiguration implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/api/file/**").addResourceLocations("file:" + imagePath + "/"); + registry.addResourceHandler(imagePath).addResourceLocations("file:" + imagePath + "/"); } // @Override