package com.spring.web.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.spring.domain.user.entity.AgentUserRole;

@Controller
@RequestMapping("/user")
public class UserController {
    
    @GetMapping("/management")
    @PreAuthorize("hasAnyRole('SUPER')")
    public String management(Model model) {
		model.addAttribute("roles", AgentUserRole.values());
        return "pages/user/user-management";
    }

}
