добавлен эндпоинт копирования бара
This commit is contained in:
@@ -28,6 +28,11 @@ public class BarController {
|
||||
barService.changeActiveBar(id);
|
||||
}
|
||||
|
||||
@PostMapping("/copy/{id}/{name}")
|
||||
public BarResponseDto copyActiveBar(@PathVariable Long id, @PathVariable String name) {
|
||||
return barService.copyBar(id, name);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{id}")
|
||||
public void deleteBar(@PathVariable Long id) {
|
||||
barService.deleteBar(id);
|
||||
|
||||
Reference in New Issue
Block a user