Skip to content

Commit

Permalink
Feat [#13] 컨트롤러 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed May 18, 2024
1 parent 535fee8 commit 4c53d0e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@

import lombok.RequiredArgsConstructor;
import org.sopt.jumpit.global.common.dto.SuccessResponse;
import org.sopt.jumpit.resume.domain.Resume;
import org.sopt.jumpit.resume.dto.ResumeCreateRequest;
import org.sopt.jumpit.resume.service.ResumeService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.URI;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/resumes")
Expand All @@ -28,4 +23,9 @@ public ResponseEntity<SuccessResponse> createResume (
return ResponseEntity.ok()
.build();
}

@GetMapping("/{userId}")
public ResponseEntity<Resume> findResumeById(@PathVariable Long userId) {
return ResponseEntity.ok(resumeService.findResumeById(userId));
}
}

0 comments on commit 4c53d0e

Please sign in to comment.