diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-11-19 19:35:46 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-11-19 19:35:46 +0100 |
commit | 5baaff8082847b2cfb8243fac63a05bfaa1ef35b (patch) | |
tree | c27bb2742db28be189ddd912b6d2c87c0ccdb324 /src/main | |
parent | b5b9ab553ee97019021098028738ed8d253c0bd2 (diff) |
Simplify query addressing
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java | 2 | ||||
-rw-r--r-- | src/main/resources/pl/edu/mimuw/cloudatlas/client/templates/queryForm.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java index 56237f0..01a0b94 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java @@ -30,7 +30,7 @@ public class ClientController { return "queryForm"; } - @PostMapping("/submitQuery") + @PostMapping("/query") public String submitQuery(@ModelAttribute Query queryObject, Model model) { System.out.println(queryObject.toString()); model.addAttribute("homeMessage", "Query submitted successfully"); diff --git a/src/main/resources/pl/edu/mimuw/cloudatlas/client/templates/queryForm.html b/src/main/resources/pl/edu/mimuw/cloudatlas/client/templates/queryForm.html index eb9a971..ac00645 100644 --- a/src/main/resources/pl/edu/mimuw/cloudatlas/client/templates/queryForm.html +++ b/src/main/resources/pl/edu/mimuw/cloudatlas/client/templates/queryForm.html @@ -11,7 +11,7 @@ <div th:replace="fragments/navbar :: navbar"></div> <div id="queryForm"> - <form action="#" th:action="@{/submitQuery}" th:object="${queryObject}" method="post"> + <form action="#" th:action="@{/query}" th:object="${queryObject}" method="post"> <div class="form-group"> <label for="QueryName1">Enter query name</label> <input type="text" class="form-control" id="QueryName1" rows="3" th:field="*{name}"/> |