112
Some checks failed
Android Test / validate-and-test (pull_request) Has been cancelled

This commit is contained in:
Bhumi Shah
2025-12-06 08:53:56 +03:00
parent c4bb98b321
commit 662b109709

View File

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