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