mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat: bare client for non-auth apis
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { request } from '../request';
|
||||
import { client } from '../request';
|
||||
|
||||
export interface GetUserByEmailParams {
|
||||
email: string;
|
||||
@@ -16,5 +16,5 @@ export interface User {
|
||||
export async function getUserByEmail(
|
||||
params: GetUserByEmailParams
|
||||
): Promise<User | null> {
|
||||
return request.get('/api/user', { json: params }).json<User | null>();
|
||||
return client.get('/api/user', { json: params }).json<User | null>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user