ClientAPI admin requirement now global
parent
32e67730d8
commit
0f9b828066
|
@ -33,6 +33,7 @@ import java.util.Collection;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/api/clients")
|
@RequestMapping("/api/clients")
|
||||||
|
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
||||||
public class ClientAPI {
|
public class ClientAPI {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -45,7 +46,6 @@ public class ClientAPI {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
|
||||||
@RequestMapping(method = RequestMethod.GET, headers="Accept=application/json")
|
@RequestMapping(method = RequestMethod.GET, headers="Accept=application/json")
|
||||||
public ModelAndView apiGetAllClients(ModelAndView modelAndView) {
|
public ModelAndView apiGetAllClients(ModelAndView modelAndView) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue