Package com.example.seraphine.controller
Class RegistrationController
java.lang.Object
com.example.seraphine.controller.RegistrationController
@RestController
@RequestMapping(path="api/v1/registration")
public class RegistrationController
extends Object
The controller for the registration service.
- Author:
- Loc Bui Nhien
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegistrationController
public RegistrationController()
-
-
Method Details
-
register
Create a new account, given the data provided.- Parameters:
request
- Registration request- Returns:
- newly created account
-
confirm
Handle the confirmation link.- Parameters:
token
- for the new user
-