aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick/ws/ApiController.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/ApiController.java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/ApiController.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/ApiController.java b/juick-ws/src/main/java/com/juick/ws/ApiController.java
index 9adda912..5203de57 100644
--- a/juick-ws/src/main/java/com/juick/ws/ApiController.java
+++ b/juick-ws/src/main/java/com/juick/ws/ApiController.java
@@ -1,6 +1,6 @@
package com.juick.ws;
-import com.juick.ws.api.WebSocketStatus;
+import com.juick.server.helpers.Status;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@@ -18,7 +18,7 @@ public class ApiController {
@RequestMapping(value = "/api/status", method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
- public WebSocketStatus status() {
- return new WebSocketStatus(wsHandler.clients.size());
+ public Status status() {
+ return new Status(String.valueOf(wsHandler.clients.size()));
}
}