Merge branch 'main' of https://project.nes.uni-due.de/gitea/lbs/sumoc-backend
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-02-10 20:03:13 +01:00
22 changed files with 460 additions and 77 deletions
@@ -95,11 +95,11 @@ public class SecurityConfiguration {
auth.requestMatchers("/auth/user/**").permitAll();
auth.requestMatchers("/routing/directions/**").permitAll();
auth.requestMatchers("/routing/alternative/**").permitAll();
auth.requestMatchers("/geocoding/**").permitAll();
auth.requestMatchers("/admin/**").hasRole("ADMIN"); //looks for "ROLE_ADMIN" //alternative: hasAuthoritiy("ADMIN")
auth.requestMatchers("/user/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/friendship/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/trip/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/geocoding/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/routing/alternative/carrousel/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/routing/preferences/**").hasAnyRole("USER", "ADMIN");