tanstake-table add remove, update function

This commit is contained in:
smanylov
2025-12-26 16:10:42 +07:00
parent d52dfb7ab8
commit 164e2568b9
8 changed files with 119 additions and 33 deletions
-2
View File
@@ -9,7 +9,6 @@ const API_BASE_URL = process.env.NODE_ENV === 'development'
export async function getUserFilesData() {
const token = await getSessionData('token');
console.log('fetch');
try {
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
@@ -48,7 +47,6 @@ export async function getUserFilesData() {
export async function removeUserFile(fileId : string) {
const token = await getSessionData('token');
console.log('remove');
try {
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {