1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Rename usersHandler.

This commit is contained in:
Juliusz Chroboczek 2024-04-14 01:04:44 +02:00
parent bbd9ef1f5c
commit df46e6df21

View file

@ -126,7 +126,7 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) {
} }
if kind == ".users" { if kind == ".users" {
apiUserHandler(w, r, g, rest) usersHandler(w, r, g, rest)
return return
} else if kind == ".fallback-users" && rest == "" { } else if kind == ".fallback-users" && rest == "" {
fallbackUsersHandler(w, r, g) fallbackUsersHandler(w, r, g)
@ -232,7 +232,7 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) {
return return
} }
func apiUserHandler(w http.ResponseWriter, r *http.Request, g, pth string) { func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
if pth == "/" { if pth == "/" {
if !checkAdmin(w, r) { if !checkAdmin(w, r) {
return return