update endpoint
This commit is contained in:
@@ -7,7 +7,7 @@ export async function fetchUsesData(page: number, size: number, sortBy?: string,
|
||||
const token = await getSessionData('token');
|
||||
|
||||
try {
|
||||
const response = await fetch(`${API_BASE_URL}/api/admin/get-users`, {
|
||||
const response = await fetch(`${API_BASE_URL}/api/admin/info`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
version: 1,
|
||||
@@ -48,7 +48,7 @@ export async function fetchUsesData(page: number, size: number, sortBy?: string,
|
||||
export async function fetchUsesInfo(userInfo: number) {
|
||||
|
||||
try {
|
||||
const response = await fetch(`${API_BASE_URL}/api/admin/get-users`, {
|
||||
const response = await fetch(`${API_BASE_URL}/api/admin/info`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
version: 1,
|
||||
|
||||
Reference in New Issue
Block a user