dev/2025-02-19-15-17

This commit is contained in:
geniy 2025-02-19 15:26:02 +03:00
parent 5b44efc566
commit c3233330c4
2 changed files with 7 additions and 6 deletions

View File

@ -26,12 +26,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.csrf().disable()
.authorizeRequests()
.antMatchers("/api/employee/**").hasAnyAuthority("ROLE_EMPLOYEE", "ROLE_ADMIN")
/*.antMatchers("/h2-console/**").permitAll()
.antMatchers("/edu/v1/user/register").permitAll()
.antMatchers("/edu/v1/user/username/{username}").permitAll()
.antMatchers("/edu/v1/authority/**").hasAuthority("ROLE_ADMIN")
.antMatchers("/edu/v1/user/authority/**").hasAuthority("ROLE_ADMIN")
.antMatchers("/edu/v1/user/**").hasAnyAuthority("ROLE_USER", "ROLE_ADMIN")*/
/*
.antMatchers("url").permitAll()
.antMatchers("url").hasAuthority("ROLE_ADMIN")*/
.anyRequest().authenticated()
.and()
.httpBasic()

View File

@ -0,0 +1,4 @@
package com.example.nto.controller;
public class AdminController {
}