package com.inspect.metadata.websocketutil;

import com.inspect.base.websocket.configure.WsPool;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/websocketSend"})
public class WebsocketSend {
    @PostMapping({"/sendMessage"})
    public void parseMessage(@RequestBody String msg) {
        WsPool.sendMessageToAll(msg);
    }
}
