add new user set avatar and profile background
This commit is contained in:
@@ -38,8 +38,8 @@ func main() {
|
||||
http.HandleFunc("DELETE /user", withCORS(httpRequest.HandleUserDelete))
|
||||
http.HandleFunc("GET /user", withCORS(httpRequest.HandleUserGetUser))
|
||||
http.HandleFunc("PATCH /user/profile", withCORS(httpRequest.HandleUserModProfile))
|
||||
http.HandleFunc("PATCH /user/avatar", withCORS(httpRequest.HandleUserModAvatar))
|
||||
http.HandleFunc("PATCH /user/profilebg", withCORS(httpRequest.HandleUserModProfileBg))
|
||||
http.HandleFunc("PATCH /user/avatar", withCORS(httpRequest.HandleSetUserAvatar))
|
||||
http.HandleFunc("PATCH /user/profilebg", withCORS(httpRequest.HandleSetUserProfileBg))
|
||||
http.HandleFunc("GET /user/avatar", withCORS(httpRequest.HandleGetUserAvatar))
|
||||
http.HandleFunc("GET /user/profilebg", withCORS(httpRequest.HandleGetUserProfileBg))
|
||||
|
||||
@@ -56,7 +56,10 @@ func main() {
|
||||
http.HandleFunc("POST /file", withCORS(httpRequest.HandleAttachmentFileUpload))
|
||||
http.HandleFunc("GET /file", withCORS(httpRequest.HandleAttachmentFileDownload))
|
||||
|
||||
http.HandleFunc("POST /message", withCORS(httpRequest.HandleDm))
|
||||
http.HandleFunc("POST /hub", withCORS(httpRequest.HandleHubCreate))
|
||||
http.HandleFunc("PUT /hub/join", withCORS(httpRequest.HandleHubJoin))
|
||||
|
||||
http.HandleFunc("POST /connection/message", withCORS(httpRequest.HandleDm))
|
||||
http.HandleFunc("GET /ws", wsServer.ServeWsConnection)
|
||||
|
||||
log.Println("beep boop; server server started")
|
||||
|
||||
Reference in New Issue
Block a user