Skip to content
Snippets Groups Projects

Plant model implemented

Merged Karsch Lukas requested to merge plant-model into main
13 files
+ 173
35
Compare changes
  • Side-by-side
  • Inline
Files
13
package hdm.mi.growbros.controllers;
import hdm.mi.growbros.models.Plant;
import hdm.mi.growbros.models.plant.Plant;
import hdm.mi.growbros.service.PlantsService;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.*;
@@ -23,6 +23,6 @@ public class PlantsController {
@PostMapping("/api/v1/plants")
public void createPlant(@RequestBody @Valid Plant plant) {
plantsService.create(plant);
plantsService.createPlant(plant);
}
}
Loading