-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from Ddareunging/fix/32
[Feat] 프론트 연동
- Loading branch information
Showing
16 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/main/java/ddareunging/ddareunging_server/controller/ApiTestController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package ddareunging.ddareunging_server.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@Controller | ||
public class ApiTestController { | ||
@RequestMapping(value = "/**/{path:[^.]*}") | ||
public String redirect() { | ||
return "forward:/index.html"; | ||
} | ||
} |
56 changes: 28 additions & 28 deletions
56
src/main/java/ddareunging/ddareunging_server/web/controller/LoginPageController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package ddareunging.ddareunging_server.web.controller; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
|
||
@Controller | ||
@RequestMapping("") | ||
public class LoginPageController { | ||
|
||
@Value("${kakaoApi.serviceKey}") | ||
private String client_id; | ||
|
||
@Value("${kakaoApi.redirect_uri}") | ||
private String redirect_uri; | ||
|
||
@GetMapping("") | ||
public String loginPage(Model model) { | ||
String location = "https://kauth.kakao.com/oauth/authorize?response_type=code&client_id="+client_id+"&redirect_uri="+redirect_uri; | ||
model.addAttribute("location", location); | ||
|
||
return "login"; | ||
} | ||
|
||
} | ||
//package ddareunging.ddareunging_server.web.controller; | ||
// | ||
//import org.springframework.beans.factory.annotation.Value; | ||
//import org.springframework.stereotype.Controller; | ||
//import org.springframework.ui.Model; | ||
//import org.springframework.web.bind.annotation.GetMapping; | ||
//import org.springframework.web.bind.annotation.RequestMapping; | ||
// | ||
// | ||
//@Controller | ||
//@RequestMapping("") | ||
//public class LoginPageController { | ||
// | ||
// @Value("${kakaoApi.serviceKey}") | ||
// private String client_id; | ||
// | ||
// @Value("${kakaoApi.redirect_uri}") | ||
// private String redirect_uri; | ||
// | ||
// @GetMapping("") | ||
// public String loginPage(Model model) { | ||
// String location = "https://kauth.kakao.com/oauth/authorize?response_type=code&client_id="+client_id+"&redirect_uri="+redirect_uri; | ||
// model.addAttribute("location", location); | ||
// | ||
// return "login"; | ||
// } | ||
// | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<link rel="icon" href="/favicon.ico"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="theme-color" content="#000000"/> | ||
<meta name="description" content="Web site created using create-react-app"/> | ||
<link rel="apple-touch-icon" href="/logo192.png"/> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css"/> | ||
<link rel="manifest" href="/manifest.json"/> | ||
<title>React App</title> | ||
<script src="https://apis.openapi.sk.com/tmap/jsv2?version=1&appKey=yourAppKey"></script> | ||
<script defer="defer" src="/js/main.9ae17e1c.js"></script> | ||
<link href="/css/main.6c39f2a8.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.