Class FileUserAdminController

java.lang.Object
se.bth.pulse.controller.FileUserAdminController

@Controller public class FileUserAdminController extends Object
This class is a view controller that serves the file page.
  • Constructor Details

    • FileUserAdminController

      public FileUserAdminController()
  • Method Details

    • file

      @GetMapping("/admin/users/file") public String file(org.springframework.ui.Model model, org.springframework.security.core.Authentication authentication)
      This method is used to render the file page. The return string is the name of the view to be rendered.
      Parameters:
      model - - used to pass attributes to the view
      authentication - - used to get the username and role of the logged-in user
      Returns:
      String - the view to be rendered