Bladeren bron

fixed typo

ThuyKhong 6 jaren geleden
bovenliggende
commit
e343e07f38
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/main/java/com/zipcodewilmington/bakery/Controllers/MuffinController.java

+ 1
- 1
src/main/java/com/zipcodewilmington/bakery/Controllers/MuffinController.java Bestand weergeven

@@ -29,7 +29,7 @@ public class MuffinController {
29 29
         return new ResponseEntity<>(this.muffinRepository.save(muffin), HttpStatus.CREATED);
30 30
     }
31 31
 
32
-    @RequestMapping(value = "/muffin/id", method=RequestMethod.PUT)
32
+    @RequestMapping(value = "/muffins/id", method=RequestMethod.PUT)
33 33
     public ResponseEntity<Muffin> update(@PathVariable Long id, @RequestBody Muffin muffin) {
34 34
         Muffin foundMuffin = muffinRepository.findById(id).get();
35 35
         foundMuffin.setFlavor(muffin.getFlavor());