Class SuperuserDashboardController

java.lang.Object
org.tavall.couriers.web.view.controller.dsahboard.superuser.SuperuserDashboardController

@Controller @PreAuthorize("hasRole('SUPERUSER')") public class SuperuserDashboardController extends Object
  • Constructor Details

  • Method Details

    • dashboard

      @GetMapping("/dashboard/superuser") public String dashboard(org.springframework.ui.Model model)
    • addUser

      @PostMapping("/dashboard/superuser") public String addUser(@RequestParam("username") String username, @RequestParam("role") String role, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)