#7 -- fix url, add plan

This commit is contained in:
Anton Romanov 2022-03-18 09:31:32 +04:00
parent 72b9dc2a90
commit 0a7040d4c0
3 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,8 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
log.debug("Security enabled");
http.authorizeRequests()
.antMatchers("/").permitAll()
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/docs/**", "/organizers", "/webjars/**", "/h2-console/*", "/h2-console").permitAll()
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/docs/**",
"/public/**", "/organizers", "/webjars/**", "/h2-console/*", "/h2-console").permitAll()
.antMatchers("/swagger-ui.html").hasAuthority(UserRoleConstants.ADMIN)
.anyRequest().authenticated()
.and()

Binary file not shown.

View File

@ -7,8 +7,11 @@
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content">
<a href="/public/docs/polozh.docx">
<a href="/docs/polozh.docx">
Положение
</a>
<a href="/docs/plan2022.docx">
План заседаний на 2022 год.
</a>
</div>
</html>