Class GenericController

java.lang.Object
app.YUP.controller.GenericController

@Controller public class GenericController extends Object
Controller that handles generic operations for the application.

This controller provides the endpoint to return the homepage of the application. The controller is annotated with Swagger annotations to document the API endpoints. It uses AuthenticationService to manage authentication and UserService for user-related operations.

  • Constructor Details

    • GenericController

      public GenericController()
  • Method Details

    • index

      @GetMapping("/home") public String index(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
      Returns the homepage of the application.
      Parameters:
      request - The HTTP request object.
      response - The HTTP response object.
      model - The model object to add attributes to.
      Returns:
      The name of the view to render, which is "index" in this case.
      See Also:
      • HttpServletRequest
      • HttpServletResponse
      • Model