diff --git a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java index 2f25e8e..9697285 100644 --- a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java +++ b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java @@ -49,8 +49,8 @@ public class SecurityConfig { ).permitAll() .requestMatchers(// Allow the following POST endpoints to be public. HttpMethod.POST, - "/gyms/submissions", - "/gyms/submissions/upload", + "/gyms/*/submissions", + "/gyms/*/submissions/upload", "/auth/token", "/auth/register", "/auth/activate"