|
@@ -0,0 +1,21 @@
|
|
|
+package cn.com.qmth.examcloud.ws.api.controller;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
+import cn.com.qmth.examcloud.ws.core.MessageOut;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("api/ctr/ws")
|
|
|
+public class WebSocketController extends ControllerSupport {
|
|
|
+
|
|
|
+ @RequestMapping(value = {"/", ""}, method = RequestMethod.POST)
|
|
|
+ public MessageOut post(@RequestBody MessageOut messageOut) {
|
|
|
+
|
|
|
+ return messageOut;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|