merge openapi with version from docs repo

This commit is contained in:
Pascal Fischer
2023-05-26 15:32:52 +02:00
parent f237e8bd30
commit 7bdb0dd358
4 changed files with 314 additions and 175 deletions

View File

@ -95,7 +95,7 @@ func (h *GroupsHandler) UpdateGroup(w http.ResponseWriter, r *http.Request) {
return
}
if *req.Name == "" {
if req.Name == "" {
util.WriteError(status.Errorf(status.InvalidArgument, "group name shouldn't be empty"), w)
return
}
@ -108,7 +108,7 @@ func (h *GroupsHandler) UpdateGroup(w http.ResponseWriter, r *http.Request) {
}
group := server.Group{
ID: groupID,
Name: *req.Name,
Name: req.Name,
Peers: peers,
}