mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: Add organizations endpoint for users (#50)
* feat: Add organizations endpoint for users This moves the /user endpoint to /users/me instead. This will reduce code duplication. This adds /users/<name>/organizations to list organizations a user has access to. It doesn't contain the permissions a user has over the organizations, but that will come in a future contribution. * Fix requested changes * Fix tests * Fix timeout * Add test for UserOrgs * Add test for userparam getting * Add test for NoUser
This commit is contained in:
@ -23,7 +23,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
disconnectedTimeout = time.Second
|
||||
disconnectedTimeout = 5 * time.Second
|
||||
failedTimeout = disconnectedTimeout * 5
|
||||
keepAliveInterval = time.Millisecond * 2
|
||||
)
|
||||
|
Reference in New Issue
Block a user