main #8

Closed
student-18211 wants to merge 22 commits from student-18211/NTO-2025-Backend-TeamTask:main into main
Showing only changes of commit 662b109709 - Show all commits

View File

@@ -25,6 +25,9 @@ public class EmployeeController {
@GetMapping("/{code}/auth")
public ResponseEntity<Void> checkAuth(
@PathVariable String code) {
if (code==null){
throw new IllegalArgumentException("Employee code is required");
}
try {
employeeService.getEmployeeByCode(code);
return ResponseEntity.ok().build();