完成admin-user-get
This commit is contained in:
6
tone-page-web/lib/api/admin/user/get.ts
Normal file
6
tone-page-web/lib/api/admin/user/get.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { User } from "@/lib/types/user";
|
||||
import fetcher from "../../fetcher";
|
||||
|
||||
export function get(userId: string) {
|
||||
return fetcher<User>(`/api/admin/user/${userId}`);
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
export * from './list';
|
||||
export * from './list';
|
||||
export * from './get';
|
||||
Reference in New Issue
Block a user