#7 -- add docs section
This commit is contained in:
parent
2b30a22984
commit
79e7483254
@ -15,8 +15,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = 17
|
sourceCompatibility = 11
|
||||||
targetCompatibility = 17
|
targetCompatibility = 11
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
ext {
|
ext {
|
||||||
|
BIN
data/db.mv.db
BIN
data/db.mv.db
Binary file not shown.
@ -24,6 +24,7 @@ public class MvcConfiguration implements WebMvcConfigurer {
|
|||||||
registry.addViewController("/loginError");
|
registry.addViewController("/loginError");
|
||||||
registry.addViewController("/index");
|
registry.addViewController("/index");
|
||||||
registry.addViewController("/admin");
|
registry.addViewController("/admin");
|
||||||
|
registry.addViewController("/docs");
|
||||||
registry.addViewController("/editNews");
|
registry.addViewController("/editNews");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|||||||
log.debug("Security enabled");
|
log.debug("Security enabled");
|
||||||
http.authorizeRequests()
|
http.authorizeRequests()
|
||||||
.antMatchers("/").permitAll()
|
.antMatchers("/").permitAll()
|
||||||
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/h2-console/*", "/h2-console").permitAll()
|
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/docs/**", "/h2-console/*", "/h2-console").permitAll()
|
||||||
.antMatchers("/swagger-ui.html").hasAuthority(UserRoleConstants.ADMIN)
|
.antMatchers("/swagger-ui.html").hasAuthority(UserRoleConstants.ADMIN)
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
|
BIN
src/main/resources/public/docs/polozh.docx
Normal file
BIN
src/main/resources/public/docs/polozh.docx
Normal file
Binary file not shown.
@ -38,6 +38,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/meetings/meetings">Заседания</a>
|
<a class="nav-link" href="/meetings/meetings">Заседания</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="/docs">Документы</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/reports">Отчеты</a>
|
<a class="nav-link" href="/reports">Отчеты</a>
|
||||||
</li>
|
</li>
|
||||||
|
14
src/main/resources/templates/docs.html
Normal file
14
src/main/resources/templates/docs.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
||||||
|
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
||||||
|
~
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!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>
|
||||||
|
</div>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user