Package app.YUP.controller
Class GenericController
java.lang.Object
app.YUP.controller.GenericController
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 Summary
Constructors -
Method Summary
-
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:
-