ThuyKhong 6 yıl önce
ebeveyn
işleme
e343e07f38

+ 1
- 1
src/main/java/com/zipcodewilmington/bakery/Controllers/MuffinController.java Dosyayı Görüntüle

@@ -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());