Skip to content

Commit

Permalink
[FIX] API 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Jan 11, 2024
1 parent f8f1bd3 commit f0ff6df
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.*;

import java.net.URI;
Expand All @@ -29,13 +28,17 @@ public class ApplicationController implements ApplicationApi {


@Override
@GetMapping
public ResponseEntity<ApplicationsGetResponse> getApplications(Principal principal) {
val response = applicationQueryService.getApplications(UserUtil.getUserId(principal));
return ResponseEntity.ok(response);
}

@Override
public ResponseEntity<ApplicationGetResponse> getApplication(Long applicationId, Principal principal) {
@GetMapping("/{applicationId}")
public ResponseEntity<ApplicationGetResponse> getApplication(
@PathVariable Long applicationId,
Principal principal) {
val response = applicationQueryService.getApplication(applicationId, UserUtil.getUserId(principal));
return ResponseEntity.ok(response);
}
Expand Down

0 comments on commit f0ff6df

Please sign in to comment.