package com.spring.web.controller;

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

@Controller
@RequestMapping("/schedule")
public class ScheduleController {
    
    @GetMapping
    @PreAuthorize("hasAnyRole('SUPER', 'ADMIN')")
    public String schedule() {
        return "pages/schedule/schedule";
    }
    
}
