소스 검색

Update README.md

Git-Leon 6 년 전
부모
커밋
ac27b5369b
No account linked to committer's email
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      README.md

+ 2
- 2
README.md 파일 보기

327
 
327
 
328
 
328
 
329
 ```java
329
 ```java
330
-@RequestMapping(value="/polls/{pollId}/votes", method=RequestMethod.GET)
330
+@RequestMapping(value="/polls/votes", method=RequestMethod.GET)
331
 public Iterable<Vote> getAllVotes() {
331
 public Iterable<Vote> getAllVotes() {
332
 	return voteRepository.findAll();
332
 	return voteRepository.findAll();
333
 }
333
 }
336
 * Create a `getVote` method in the `VoteController`
336
 * Create a `getVote` method in the `VoteController`
337
 
337
 
338
 ```java
338
 ```java
339
-@RequestMapping(value="/polls/votes", method=RequestMethod.GET)
339
+@RequestMapping(value="/polls/{pollId}/votes", method=RequestMethod.GET)
340
 public Iterable<Vote> getVote(@PathVariable Long pollId) {
340
 public Iterable<Vote> getVote(@PathVariable Long pollId) {
341
 	return voteRepository.findById(pollId);
341
 	return voteRepository.findById(pollId);
342
 }
342
 }