UrlChanged
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
package co.jp.app.common;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class ApiResponse<T> {
|
||||
private boolean success;
|
||||
private String message;
|
||||
@ -20,6 +18,7 @@ public class ApiResponse<T> {
|
||||
public ApiResponse() {
|
||||
}
|
||||
|
||||
|
||||
public ApiResponse(boolean success, String message, T data) {
|
||||
this.success = success;
|
||||
this.message = message;
|
||||
|
@ -14,10 +14,10 @@ public class DownloadController {
|
||||
@Autowired
|
||||
private PetService service;
|
||||
|
||||
@GetMapping("/api/dogs/pet")
|
||||
@GetMapping("/api/dogs/download")
|
||||
public String downloadById(@RequestParam List<Integer> id) {
|
||||
service.getPetByID(id);
|
||||
return "pet";
|
||||
return "download";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user