diff options
Diffstat (limited to 'src/main/java/pl')
-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 { +} |