Class LoginRecordController

java.lang.Object
com.fyp.tauceti.controller.LoginRecordController

@RestController public class LoginRecordController extends Object
Spring Controller for interacting with the LOGIN_RECORD database table through web APIs
  • Constructor Details

    • LoginRecordController

      public LoginRecordController(LoginRecordRepository repository)
      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