Move websocket endpoint to /ws.
This commit moves the connection endpoint for websockets to /ws instead of /wallet. First, the former is more standard, and second the latter presumes how the websocket is to be used. Closes #80.
This commit is contained in:
parent
5ec951f6a7
commit
2a7d725a09
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ func (s *rpcServer) Start() {
|
|||
jsonRPCRead(w, r, s)
|
||||
})
|
||||
|
||||
rpcServeMux.HandleFunc("/wallet", func(w http.ResponseWriter, r *http.Request) {
|
||||
rpcServeMux.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
authenticated, err := s.checkAuth(r, false)
|
||||
if err != nil {
|
||||
http.Error(w, "401 Unauthorized.", http.StatusUnauthorized)
|
||||
|
|
Loading…
Add table
Reference in a new issue