Skip to content

Commit

Permalink
Merge pull request #65 from TeamPINGLE/feat/64
Browse files Browse the repository at this point in the history
[feat] 데모데이용 QR 만들기
  • Loading branch information
tkdwns414 authored Jan 12, 2024
2 parents 2f5eaee + 0ac1495 commit ca582f4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/java/org/pingle/pingleserver/controller/QrController.java
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class SecurityConfig {
"/v1/auth/reissue",
"/actuator/health",
"/test/**",
"/qr/**",

"/api-docs.html",
"/api-docs/**",
Expand Down

0 comments on commit ca582f4

Please sign in to comment.