25 lines
654 B
Java
25 lines
654 B
Java
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";
|
|
}
|
|
|
|
@GetMapping("/history")
|
|
@PreAuthorize("hasAnyRole('SUPER', 'ADMIN')")
|
|
public String history() {
|
|
return "pages/schedule/history";
|
|
}
|
|
|
|
}
|