mirror of
https://github.com/coder/coder.git
synced 2026-11-02 21:50:08 +08:00
fix(site): use search params for model edit/add navigation (#23277)
This commit is contained in:
@@ -626,6 +626,13 @@ class ApiMethods {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
getUser = async (userIdOrName: string): Promise<TypesGen.User> => {
|
||||
const response = await this.axios.get<TypesGen.User>(
|
||||
`/api/v2/users/${encodeURIComponent(userIdOrName)}`,
|
||||
);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get users for workspace owner selection. Requires
|
||||
* permission to create workspaces for other users in the
|
||||
|
||||
Reference in New Issue
Block a user