code clear

This commit is contained in:
2025-03-22 23:06:03 +08:00
parent 5f63c4cf4b
commit 74a484718a
17 changed files with 27 additions and 483 deletions

View File

@@ -6,7 +6,7 @@ import { router } from '../router.ts';
router.post('/api/minio', async (ctx) => {
let { username, appKey } = { username: '', appKey: '' };
const path = `${username}/${appKey}`;
const res = await minioClient.listObjects(bucketName, path, true);
const res = await minioClient.listObjectsV2(bucketName, path, true);
const file = res.filter((item) => item.isFile);
const fileList = file.map((item) => {
return {