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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the current user.Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, handleGenericException
-
Constructor Details
-
UserInfoController
public UserInfoController()
-
-
Method Details
-
getCurrentUser
This method returns the current user.- Overrides:
getCurrentUser
in classApiController
- Returns:
- the current user
-