fix getting unread messages, ws endpoint
This commit is contained in:
@@ -54,7 +54,7 @@ func main() {
|
||||
http.HandleFunc("GET /file", withCORS(httpRequest.HandleAttachmentFileDownload))
|
||||
|
||||
http.HandleFunc("POST /message", withCORS(httpRequest.HandleDm))
|
||||
http.HandleFunc("/ws", wsServer.ServeWsConnection)
|
||||
http.HandleFunc("GET /ws", wsServer.ServeWsConnection)
|
||||
|
||||
log.Println("beep boop; server server started")
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
|
||||
Reference in New Issue
Block a user