diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-11-19 19:22:13 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-11-19 19:27:32 +0100 |
commit | 89b3f1164af4d157a1419e203575fe9a56f25794 (patch) | |
tree | 9051f6a935137452031c628fc6ba9a84cd1d982b /src/main/java | |
parent | eef8436d8e58623b431810471f92f12b20c87434 (diff) |
Add working home page front-end
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java (renamed from src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java) | 9 | ||||
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/client/Query.java | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java index 3b0ec63..ce3ee81 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java @@ -1,8 +1,8 @@ package pl.edu.mimuw.cloudatlas.client; import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; +import org.springframework.stereotype.Controller; /* should enable reading attribute values stored by the agent @@ -15,11 +15,12 @@ and presenting the information fetched from the agent in a textual form (with au plotting the attributes with numeric values as real-time graphs. */ -@RestController -public class Controller { +@Controller +public class ClientController { @GetMapping("/") public String homePage(Model model) { + model.addAttribute("homeMessage", "Welcome to CloudaAtlas client interface"); return "home"; } } diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/Query.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/Query.java new file mode 100644 index 0000000..468c869 --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/Query.java @@ -0,0 +1,4 @@ +package pl.edu.mimuw.cloudatlas.client; + +public class Query { +} |