mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-12 14:58:45 +00:00
add user to list by id
This commit is contained in:
parent
baf388cb42
commit
215930e3b9
2 changed files with 11 additions and 0 deletions
|
@ -770,6 +770,9 @@ func NewHandler(s *service, verbose bool, staticDir string) http.Handler {
|
|||
id, _ := mux.Vars(c.r)["id"]
|
||||
q := c.r.URL.Query()
|
||||
uid := q.Get("uid")
|
||||
if uid == "" {
|
||||
uid = c.r.FormValue("uid")
|
||||
}
|
||||
err := s.ListAddUser(c, id, uid)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue