Ignore:
Timestamp:
02/10/23 00:10:41 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
73f0dbc
Parents:
5444409
Message:

added authorization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/config/WebSecurityConfig.java

    r5444409 r01a1ca6  
    3232        http.csrf().disable()
    3333                .authorizeRequests()
    34                 .antMatchers("/","/**","/home/getFilm/**","/films","/projections" ,"/home", "/assets/**", "/register", "/api/**").permitAll()
    35                 .antMatchers("/admin/**").hasRole("ADMIN")
     34                .antMatchers("/","/films","/home/projections","/home/events","/home/getProjections/**","/home/films","/getFilm/**","/getEvent/**","/login","/events","/projections" ,"/home", "/assets/**", "/register", "/api/**").permitAll()
     35                .antMatchers("/home/getSeats/**","/myTickets","/getProjection/**","/home/makeReservation").hasRole("USER")
     36                .antMatchers("/**").hasRole("ADMIN")
    3637                .anyRequest()
    3738                .authenticated()
Note: See TracChangeset for help on using the changeset viewer.