fix changes from debug, edit groups return, add new connections func
This commit is contained in:
@@ -18,17 +18,21 @@ func main() {
|
||||
DbInit(ctx)
|
||||
|
||||
http.HandleFunc("/new/user", withCORS(HttpHandleUserNew))
|
||||
http.HandleFunc("/new/connection", withCORS(HttpHandleUserNewConnection))
|
||||
http.HandleFunc("/new/token", withCORS(HttpHandleTokenNew))
|
||||
http.HandleFunc("/new/group", withCORS(HttpHandeGroupCreate))
|
||||
|
||||
http.HandleFunc("/mod/user/appearence", withCORS(HttpHandleUserModifyAppearance))
|
||||
http.HandleFunc("/mod/user/about", withCORS(HttpHandleUserModifyAbout))
|
||||
http.HandleFunc("/mod/connection/accept", withCORS(HttpHandleUserAcceptConnection))
|
||||
http.HandleFunc("/mod/connection/delete", withCORS(HttpHandleUserDeleteConnection))
|
||||
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/connections", withCORS(HttpHandleUserGetConnections))
|
||||
|
||||
http.HandleFunc("/get/group/members", withCORS(HttpHandleGroupMembersGet))
|
||||
http.HandleFunc("/del/group", withCORS(HttpHandleGroupDelete))
|
||||
|
||||
Reference in New Issue
Block a user