code clear
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user