create users through admin page
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { toast } from 'vue-sonner';
|
||||
import type { ApiResponse } from '~/types/api';
|
||||
import type { AuthUser } from '~/types/auth';
|
||||
import { getApiHeaders } from '..';
|
||||
|
||||
export async function loginUser(
|
||||
email: string,
|
||||
@@ -10,9 +11,7 @@ export async function loginUser(
|
||||
ApiResponse<{ token: string; user: AuthUser; expiresAt: number }>
|
||||
>(getApiUrl('auth/login'), {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
headers: getApiHeaders(false),
|
||||
body: JSON.stringify({
|
||||
email: email,
|
||||
password: password,
|
||||
|
||||
Reference in New Issue
Block a user