feat: 优化项目目录结构
This commit is contained in:
8
apps/frontend/lib/api/user/me.ts
Normal file
8
apps/frontend/lib/api/user/me.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { User } from "@/lib/types/user";
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export async function me() {
|
||||
return fetcher<User>('/api/user/me');
|
||||
}
|
||||
|
||||
export const USER_ME_CACHE_KEY = 'user-me-cache';
|
||||
Reference in New Issue
Block a user