Skip to content

Commit 70645a4

Browse files
authored
feat: 루트 경로(/) 요청 시 /main으로 리디렉트하는 RedirectController 추가
1 parent e8d8100 commit 70645a4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.example.FixLog.controller;
2+
3+
import org.springframework.stereotype.Controller;
4+
import org.springframework.web.bind.annotation.GetMapping;
5+
6+
@Controller
7+
public class RedirectController {
8+
9+
@GetMapping("/")
10+
public String redirectToMain() {
11+
return "redirect:/main";
12+
}
13+
}

0 commit comments

Comments
 (0)