mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
|
|
import type { UserProfileResponse } from "@paperclipai/shared";
|
||
|
|
import { api } from "./client";
|
||
|
|
|
||
|
|
export const userProfilesApi = {
|
||
|
|
get: (companyId: string, userSlug: string) =>
|
||
|
|
api.get<UserProfileResponse>(
|
||
|
|
`/companies/${companyId}/users/${encodeURIComponent(userSlug)}/profile`,
|
||
|
|
),
|
||
|
|
};
|