Package edu.ucsb.cs156.rec.controllers
Class UserInfoController
java.lang.Object
edu.ucsb.cs156.rec.controllers.ApiController
edu.ucsb.cs156.rec.controllers.UserInfoController
@RequestMapping("/api/currentUser")
@RestController
public class UserInfoController
extends ApiController
This is a REST controller for getting information about the current user.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionThis method returns the current user.Methods inherited from class edu.ucsb.cs156.rec.controllers.ApiController
genericMessage, handleDuplicateException, handleGenericException 
- 
Constructor Details
- 
UserInfoController
public UserInfoController() 
 - 
 - 
Method Details
- 
getCurrentUser
This method returns the current user.- Overrides:
 getCurrentUserin classApiController- Returns:
 - the current user
 
 
 -