Class UserInfoController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.UserInfoController
@RequestMapping("/api/currentUser")
@RestController
public class UserInfoController
extends ApiController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.happiercows.controllers.ApiController
genericMessage, handleBadRequest, handleGenericException
-
Constructor Details
-
UserInfoController
public UserInfoController()
-
-
Method Details
-
getCurrentUser
- Overrides:
getCurrentUser
in classApiController
-
updateLastOnline
@PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("/last-online") public org.springframework.http.ResponseEntity<Instant> updateLastOnline()
-