Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aasa file read path 변경 #91

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading