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 @@ - PolyDarker + WhimsyWorld diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 09d8e6d..5675ae8 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -3,7 +3,7 @@ - Polydarker + WhimsyWorld diff --git a/src/main/resources/templates/panel.html b/src/main/resources/templates/panel.html new file mode 100644 index 0000000..2b9d807 --- /dev/null +++ b/src/main/resources/templates/panel.html @@ -0,0 +1,40 @@ + + + + + + WhimsyWorld + + + +
+ +
+ +
+

+

Where god thrive with code.

+

We are world's #1 idea building company 💡 coding all night long 👨🏻‍💻

+
+

Get QuoteGet Started →

+
+
+
+ + \ No newline at end of file