mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 14:31:01 +00:00
Update frontend
This commit is contained in:
parent
73fa5b1373
commit
25d0921aed
2
frontend
2
frontend
@ -1 +1 @@
|
||||
Subproject commit 630ceb9241ce4fc707b572f689a2b27c13be52cd
|
||||
Subproject commit 07607d9464726e2628d58e37dc7fe06e37ff3605
|
||||
@ -56,7 +56,6 @@ public class PatternController {
|
||||
@PostMapping
|
||||
public PatternDto addPattern(@RequestBody PatternCreateDto dto) {
|
||||
return service.create(dto);
|
||||
|
||||
}
|
||||
|
||||
@PostMapping("/{id}")
|
||||
|
||||
@ -90,6 +90,10 @@ public class ServicesService {
|
||||
|
||||
@Transactional
|
||||
public ServiceDto create(ServiceCreateDto dto) {
|
||||
if (repository.existsById(dto.getPort())) {
|
||||
throw new IllegalArgumentException("Service already exists");
|
||||
}
|
||||
|
||||
CtfService service = fromDto(dto);
|
||||
|
||||
log.info("Added service '{}' at port {}", service.getName(), service.getPort());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user