ThuyKhong 6 anni fa
parent
commit
e343e07f38

+ 1
- 1
src/main/java/com/zipcodewilmington/bakery/Controllers/MuffinController.java Vedi File

29
         return new ResponseEntity<>(this.muffinRepository.save(muffin), HttpStatus.CREATED);
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
     public ResponseEntity<Muffin> update(@PathVariable Long id, @RequestBody Muffin muffin) {
33
     public ResponseEntity<Muffin> update(@PathVariable Long id, @RequestBody Muffin muffin) {
34
         Muffin foundMuffin = muffinRepository.findById(id).get();
34
         Muffin foundMuffin = muffinRepository.findById(id).get();
35
         foundMuffin.setFlavor(muffin.getFlavor());
35
         foundMuffin.setFlavor(muffin.getFlavor());