Skip to content

Commit

Permalink
메인 페이지 깃허브로 리다이렉트
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed May 26, 2024
1 parent 41cf440 commit 275eca7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package team1.issuetracker;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/")
public class HomeController {

@GetMapping
public String home(){
return "home222222222222222222 무중단무중단무중단";
public void redirectToGithub(HttpServletResponse httpServletResponse) throws IOException {
httpServletResponse.sendRedirect("https://github.com/codesquad-masters2024-team01/issue-tracker");
}
}

0 comments on commit 275eca7

Please sign in to comment.