Skip to content

Commit

Permalink
Merge pull request #91 from YAPP-Github/feature/universial-link
Browse files Browse the repository at this point in the history
aasa file read path 변경
  • Loading branch information
devk0ng authored Jan 13, 2024
2 parents 0c1e728 + 15fe219 commit 694b38c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/pyonsnalcolor/admin/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand All @@ -19,6 +17,7 @@

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.concurrent.ExecutionException;

Expand All @@ -40,8 +39,7 @@ public class AdminController {
// universial link
@GetMapping("/")
public ResponseEntity<String> getAASAData() throws IOException {
Resource resource = new ClassPathResource("apple-app-site-association");
byte[] jsonData = Files.readAllBytes(resource.getFile().toPath());
byte[] jsonData = Files.readAllBytes(Paths.get("/home/aasa/apple-app-site-association"));

return ResponseEntity.ok()
.contentType(MediaType.APPLICATION_JSON)
Expand Down

0 comments on commit 694b38c

Please sign in to comment.