-
Notifications
You must be signed in to change notification settings - Fork 0
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 #65 from TeamPINGLE/feat/64
[feat] 데모데이용 QR 만들기
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/main/java/org/pingle/pingleserver/controller/QrController.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,29 @@ | ||
package org.pingle.pingleserver.controller; | ||
|
||
import jakarta.servlet.http.HttpServletResponse; | ||
import org.springframework.beans.factory.annotation.Value; | ||
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("/qr") | ||
public class QrController { | ||
|
||
@Value("${qr.ios}") | ||
private String iOSQr; | ||
@Value("${qr.android}") | ||
private String androidQr; | ||
|
||
@GetMapping("/iOS") | ||
public void getiOSQr(HttpServletResponse httpServletResponse) throws IOException { | ||
httpServletResponse.sendRedirect(iOSQr); | ||
} | ||
|
||
@GetMapping("/Android") | ||
public void getAndroidQr(HttpServletResponse httpServletResponse) throws IOException { | ||
httpServletResponse.sendRedirect(androidQr); | ||
} | ||
} |
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