add db function for user connections

This commit is contained in:
2026-04-04 12:55:35 +02:00
parent 91220c37ca
commit fc14987d6d
5 changed files with 100 additions and 20 deletions
+7 -3
View File
@@ -20,16 +20,20 @@ func main() {
http.HandleFunc("/new/user", withCORS(HttpHandleUserNew))
http.HandleFunc("/new/token", withCORS(HttpHandleNewToken))
http.HandleFunc("/new/group", withCORS(HttpHandeGroupCreate))
http.HandleFunc("/new/message", withCORS(HttpHandleNewMessage))
http.HandleFunc("mod/user/appearence", withCORS(HttpHandleUserModifyAppearance))
http.HandleFunc("mod/user/about", withCORS(HttpHandleUserModifyAbout))
http.HandleFunc("/mod/user/appearence", withCORS(HttpHandleUserModifyAppearance))
http.HandleFunc("/mod/user/about", withCORS(HttpHandleUserModifyAbout))
http.HandleFunc("/mod/group/addusers", withCORS(HttpHandleGroupAddUser))
http.HandleFunc("/mod/group/removeusers", withCORS(HttpHandleGroupRemoveUser))
http.HandleFunc("/mod/group/color", withCORS(HttpHandleGroupChangeColor))
http.HandleFunc("/mod/group/owner", withCORS(HttpHandleGroupChangeOwner))
http.HandleFunc("/get/groups", withCORS(HttpHandleGroupsGetWithoutMembers))
http.HandleFunc("/get/group/members", withCORS(HttpHandleGroupMembersGet))
http.HandleFunc("/del/group", withCORS(HttpHandleGroupDelete))
http.HandleFunc("/msg/group", withCORS(HttpHandleGroupMessage))
http.HandleFunc("/ws", ServeWsConnection)
log.Println("listening on :8080")