-
-
Save devotdev/40d41789c5a59661827e6fec171fd1f1 to your computer and use it in GitHub Desktop.
Spring RBAC controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RestController | |
| @RequestMapping("/api/v1/rbac") | |
| public class RbacController { | |
| @GetMapping("/doctor") | |
| public String doctor() { | |
| return "Doctor content"; | |
| } | |
| @GetMapping("/patient") | |
| public String patient() { | |
| return "Patient content"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment