Class UserInfoController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.UserInfoController
@RequestMapping("/api/currentUser")
@RestController
public class UserInfoController
extends ApiController
This is a REST controller for getting information about the current user.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis method returns the current user.Methods inherited from class edu.ucsb.cs156.example.controllers.ApiControllergenericMessage, handleGenericException
- 
Constructor Details- 
UserInfoControllerpublic UserInfoController()
 
- 
- 
Method Details- 
getCurrentUserThis method returns the current user.- Overrides:
- getCurrentUserin class- ApiController
- Returns:
- the current user
 
 
-