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:
Dave Collins 2014-02-03 10:46:03 -06:00
parent 5ec951f6a7
commit 2a7d725a09

View file

@ -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)