diff --git a/src/main/java/com/alterdekim/game/controller/StaticController.java b/src/main/java/com/alterdekim/game/controller/StaticController.java index 3b64f49..f7ff0a1 100644 --- a/src/main/java/com/alterdekim/game/controller/StaticController.java +++ b/src/main/java/com/alterdekim/game/controller/StaticController.java @@ -41,4 +41,9 @@ public class StaticController { model.addAttribute("flashVars_", "game_server=http://"+serverConfig.getPublicDomain()+":"+serverProperties.getPort()+"/&url_path_server=http://"+serverConfig.getPublicDomain()+":"+serverProperties.getPort()+"/&is_new_user=1"); return "index"; } + + @GetMapping("/panel") + public String panel() { + return "panel"; + } } diff --git a/src/main/java/com/alterdekim/game/security/SpringSecurity.java b/src/main/java/com/alterdekim/game/security/SpringSecurity.java index 59dab3e..c7de4c1 100644 --- a/src/main/java/com/alterdekim/game/security/SpringSecurity.java +++ b/src/main/java/com/alterdekim/game/security/SpringSecurity.java @@ -35,6 +35,7 @@ public class SpringSecurity { authorize .requestMatchers("/").permitAll() .requestMatchers("/login").permitAll() + .requestMatchers("/panel").hasAnyAuthority("ROLE_USER") // todo: make several roles and separate them .requestMatchers("/main").hasAnyAuthority("ROLE_USER") .requestMatchers("/"+ FileServerController.URL_PATH +"/**").permitAll() .requestMatchers("/ConstructorACHandler.ashx").permitAll() diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 86101ee..7f1e478 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -2,7 +2,7 @@
-code
.We are world's #1 idea building company 💡 coding all night long 👨🏻💻
+