fix deelevation of connection, update client
This commit is contained in:
@@ -36,6 +36,7 @@ func main() {
|
||||
http.HandleFunc("/mod/user/avatar", withCORS(httpRequest.HandleUserModAvatar))
|
||||
http.HandleFunc("/mod/user/profilebg", withCORS(httpRequest.HandleUserModProfileBg))
|
||||
http.HandleFunc("/mod/connection/elevate", withCORS(httpRequest.HandleUserElevateConnection))
|
||||
http.HandleFunc("/mod/connection/deelevate", withCORS(httpRequest.HandleUserDeElevateConnection))
|
||||
|
||||
http.HandleFunc("/get/user", withCORS(httpRequest.HandleUserGetUser))
|
||||
http.HandleFunc("/get/connections", withCORS(httpRequest.HandleUserGetConnections))
|
||||
@@ -50,6 +51,6 @@ func main() {
|
||||
http.HandleFunc("/msg/user", withCORS(httpRequest.HandleDm))
|
||||
http.HandleFunc("/ws", wsServer.ServeWsConnection)
|
||||
|
||||
log.Println("listening on :8080")
|
||||
log.Println("beep boop; server server started")
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user