112
This commit is contained in:
1 parent
c4bb98b321
commit
662b109709
1 file changed
+3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user