:(
This commit is contained in:
@@ -17,10 +17,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("code")
|
||||
public class EmployeeController {
|
||||
@GetMapping("/auth/{id}")
|
||||
public int isAuth(@PathVariable int id){
|
||||
return id;
|
||||
}
|
||||
// @GetMapping("/auth/{id}")
|
||||
// public int isAuth(@PathVariable int id){
|
||||
// return id;
|
||||
// }
|
||||
|
||||
private final EmployeeService employeeService;
|
||||
|
||||
@@ -29,9 +29,8 @@ public class EmployeeController {
|
||||
this.employeeService = employeeService;
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@ResponseStatus(code = HttpStatus.OK)
|
||||
public List<Employee> getAll() {
|
||||
return employeeService.getAll();
|
||||
@GetMapping("/{id}/auth")
|
||||
public HttpStatus Isauth(@PathVariable long id){
|
||||
return HttpStatus.OK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user