Class AdminsController
java.lang.Object
edu.ucsb.cs156.diningcachingproxy.controller.ApiController
edu.ucsb.cs156.diningcachingproxy.controller.AdminsController
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ApiController
genericMessage, getCurrentUser, handleEntityNotFoundException, handleForbiddenException, handleIllegalArgument, handleUnsupportedOperation
-
Constructor Details
-
AdminsController
public AdminsController()
-
-
Method Details
-
postAdmin
-
allAdmins
@PreAuthorize("hasRole('ROLE_ADMIN')") @GetMapping("/all") public Iterable<AdminsController.AdminDTO> allAdmins() -
deleteAdmin
-