Package com.fyp.tauceti.controller
Class LoginRecordController
java.lang.Object
com.fyp.tauceti.controller.LoginRecordController
Spring Controller for interacting with the LOGIN_RECORD database table through web APIs
-
Constructor Summary
ConstructorDescriptionLoginRecordController
(LoginRecordRepository repository) Paramterised Constructor -
Method Summary
-
Constructor Details
-
LoginRecordController
Paramterised Constructor- Parameters:
repository
- LoginRecordRepository object for CRUD operations on LOGIN_RECORD database table
-
-
Method Details
-
logins
@CrossOrigin(origins="https://localhost:4200") @GetMapping("/login-record") public List<LoginRecord> logins()"/login-record" endpoint: Accepts GET requests- Returns:
- A list of all LoginRecord records in the database
-