mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-01 03:04:07 +09:00
api/v2: add user get and list (Tailscale compat)
Backs the tailscale_user and tailscale_users data sources. getUser maps gorm/ErrUserNotFound to 404; unmodelled fields are honest constants, deviceCount/lastSeen/currentlyConnected aggregate the user's nodes.
This commit is contained in:
1 parent
ec0cb6f63a
commit
475a5ead0c
3 files changed
+179
No files matched your search
@@ -244,6 +244,9 @@ const (
|
||||
|
||||
ScopeFeatureSettings Scope = "feature_settings"
|
||||
ScopeFeatureSettingsRead Scope = "feature_settings:read"
|
||||
|
||||
ScopeUsers Scope = "users"
|
||||
ScopeUsersRead Scope = "users:read"
|
||||
)
|
||||
|
||||
// scopeMetaKey keys the per-operation required Scope in huma.Operation.Metadata.
|
||||
|
||||
Reference in new issue
Block a user