Skip to content

Commit edcd395

Browse files
committed
Add first version with a top navbar menu for handling several pages.
1 parent 5a3e564 commit edcd395

File tree

6 files changed

+1200
-1063
lines changed

6 files changed

+1200
-1063
lines changed

src/main/java/com/ericsson/ei/frontend/WebController.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,27 @@ public class WebController {
3434
@RequestMapping("/")
3535
public String greeting(Model model) {
3636

37+
// String frontendServiceUrl = String.format("http://%s:%d", frontendServiceHost, frontendServicePort);
38+
39+
// model.addAttribute("frontendServiceUrl", frontendServiceUrl); // inject in DOM for AJAX etc
40+
41+
return "index";
42+
}
43+
44+
@RequestMapping("/subscriptionpage")
45+
public String subscription(Model model) {
46+
3747
String frontendServiceUrl = String.format("http://%s:%d", frontendServiceHost, frontendServicePort);
3848

3949
model.addAttribute("frontendServiceUrl", frontendServiceUrl); // inject in DOM for AJAX etc
4050

41-
return "index";
51+
return "subscription";
52+
}
53+
54+
@RequestMapping("/testrules")
55+
public String testRules(Model model) {
56+
57+
return "testRules";
4258
}
4359

4460
// Backend host and port (Getter & Setters), application.properties -> greeting.xxx

0 commit comments

Comments
 (0)