Git-Leon преди 6 години
родител
ревизия
ac27b5369b
No account linked to committer's email
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      README.md

+ 2
- 2
README.md Целия файл

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