From dc9d022f08a9aa5e7cbe6ade7e07489007f9ab49 Mon Sep 17 00:00:00 2001 From: neviyn Date: Wed, 31 Mar 2021 23:25:41 +0100 Subject: [PATCH] Added subfolders to static --- .../kotlin/uk/co/neviyn/projectplanner/Security.kt | 2 +- src/main/resources/static/{ => img}/landing_1.jpg | Bin src/main/resources/templates/landing.html | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/main/resources/static/{ => img}/landing_1.jpg (100%) diff --git a/src/main/kotlin/uk/co/neviyn/projectplanner/Security.kt b/src/main/kotlin/uk/co/neviyn/projectplanner/Security.kt index 8b45c0b..2c32d46 100644 --- a/src/main/kotlin/uk/co/neviyn/projectplanner/Security.kt +++ b/src/main/kotlin/uk/co/neviyn/projectplanner/Security.kt @@ -25,7 +25,7 @@ import java.io.Serializable @Configuration class SecurityConfig @Autowired constructor(val userDetailsService: UserDetailsServiceImpl) : WebSecurityConfigurerAdapter() { override fun configure(http: HttpSecurity) { - http.authorizeRequests().antMatchers("/", "/*.jpg", "/*.svg", "/register").permitAll() + http.authorizeRequests().antMatchers("/", "/img/*", "/js/*", "/register").permitAll() .anyRequest().authenticated().and() .formLogin().loginPage("/login").permitAll().and() .logout().logoutSuccessUrl("/").permitAll().and() diff --git a/src/main/resources/static/landing_1.jpg b/src/main/resources/static/img/landing_1.jpg similarity index 100% rename from src/main/resources/static/landing_1.jpg rename to src/main/resources/static/img/landing_1.jpg diff --git a/src/main/resources/templates/landing.html b/src/main/resources/templates/landing.html index fcfdbd6..93c1396 100644 --- a/src/main/resources/templates/landing.html +++ b/src/main/resources/templates/landing.html @@ -7,7 +7,7 @@
- landing page + landing page