Skip to content

Commit

Permalink
chore: welcome page 추가3
Browse files Browse the repository at this point in the history
  • Loading branch information
shinheekim committed Jul 29, 2024
1 parent 7383a7a commit d7dc12f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/main/java/net/skhu/likelion12thteam03be/HelloController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package net.skhu.likelion12thteam03be;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HelloController {
@GetMapping
public String hello (Model model) {
return "index.html";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.httpBasic(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(authorize -> authorize
.requestMatchers(HttpMethod.POST, "/users/**").permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/profile").permitAll()
.requestMatchers("/").permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll()
.requestMatchers("/", "/profile").permitAll()
.anyRequest().authenticated()
)
.addFilterBefore(jwtAuthorizationFilter, UsernamePasswordAuthenticationFilter.class)
Expand Down
File renamed without changes.

0 comments on commit d7dc12f

Please sign in to comment.