@@ -29,17 +29,69 @@ public class WebController {
29
29
30
30
private String frontendServiceHost ;
31
31
private int frontendServicePort ;
32
+ private String backendServerHost ;
33
+ private int backendServerPort ;
34
+
35
+ private String eiffelDocumentationUrls ;
32
36
33
37
34
38
@ RequestMapping ("/" )
35
39
public String greeting (Model model ) {
36
40
41
+ String eiffelDocumentationUrlLinks = String .format ("%s" , eiffelDocumentationUrls );
42
+
43
+ model .addAttribute ("eiffelDocumentationUrlLinks" , eiffelDocumentationUrlLinks ); // inject in DOM for AJAX etc
44
+
45
+
46
+
47
+ return "index" ;
48
+ }
49
+
50
+ @ RequestMapping ("/subscriptionpage.html" )
51
+ public String subscription (Model model ) {
52
+
37
53
String frontendServiceUrl = String .format ("http://%s:%d" , frontendServiceHost , frontendServicePort );
38
54
39
55
model .addAttribute ("frontendServiceUrl" , frontendServiceUrl ); // inject in DOM for AJAX etc
40
56
41
- return "index" ;
57
+ return "subscription" ;
58
+ }
59
+
60
+ @ RequestMapping ("/testRules.html" )
61
+ public String testRules (Model model ) {
62
+
63
+ return "testRules" ;
64
+ }
65
+
66
+ @ RequestMapping ("/eiInfo.html" )
67
+ public String eiInfo (Model model ) {
68
+
69
+ String frontendServiceUrl = String .format ("http://%s:%d" , frontendServiceHost , frontendServicePort );
70
+ model .addAttribute ("frontendServiceUrl" , frontendServiceUrl ); // inject in DOM for AJAX etc
71
+ String backendServerUrl = String .format ("http://%s:%d" , backendServerHost , backendServerPort );
72
+ model .addAttribute ("backendServerUrl" , backendServerUrl );
73
+
74
+ return "eiInfo" ;
75
+ }
76
+
77
+ @ RequestMapping ("/login.html" )
78
+ public String login (Model model ) {
79
+
80
+ return "login" ;
81
+ }
82
+
83
+ @ RequestMapping ("/register.html" )
84
+ public String register (Model model ) {
85
+
86
+ return "register" ;
87
+ }
88
+
89
+ @ RequestMapping ("/forgot-password.html" )
90
+ public String forgotPassword (Model model ) {
91
+
92
+ return "forgot-password" ;
42
93
}
94
+
43
95
44
96
// Backend host and port (Getter & Setters), application.properties -> greeting.xxx
45
97
public String getFrontendServiceHost () {
@@ -57,5 +109,28 @@ public int getFrontendServicePort() {
57
109
public void setFrontendServicePort (int frontendServicePort ) {
58
110
this .frontendServicePort = frontendServicePort ;
59
111
}
112
+
113
+ public String getBackendServerHost () {
114
+ return backendServerHost ;
115
+ }
60
116
117
+ public void setBackendServerHost (String backendServerHost ) {
118
+ this .backendServerHost = backendServerHost ;
119
+ }
120
+
121
+ public int getBackendServerPort () {
122
+ return backendServerPort ;
123
+ }
124
+
125
+ public void setBackendServerPort (int backendServerPort ) {
126
+ this .backendServerPort = backendServerPort ;
127
+ }
128
+
129
+ public String getEiffelDocumentationUrls () {
130
+ return eiffelDocumentationUrls ;
131
+ }
132
+
133
+ public void setEiffelDocumentationUrls (String eiffelDocumentationUrls ) {
134
+ this .eiffelDocumentationUrls = eiffelDocumentationUrls ;
135
+ }
61
136
}
0 commit comments