add file download

This commit is contained in:
smanylov
2026-01-02 12:52:01 +07:00
parent a085685d33
commit 3537bd1f3a
3 changed files with 81 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
'use server'
import { NextRequest, NextResponse } from 'next/server';
import { getSessionData } from '@/app/actions/session';
import { API_BASE_URL } from '@/app/actions/definitions';
@@ -42,7 +43,7 @@ export async function getUserFilesData() {
}
}
export async function removeUserFile(fileId : string) {
export async function removeUserFile(fileId: string) {
const token = await getSessionData('token');
try {