mirror of
https://github.com/directus/directus.git
synced 2026-01-28 17:48:09 -05:00
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import listFolders from '../utils/list-folders';
|
|
import path from 'path';
|
|
import env from '../env';
|
|
|
|
/**
|
|
* @TODO turn into class
|
|
*/
|
|
|
|
export async function listExtensions(type: string) {
|
|
const extensionsPath = env.EXTENSIONS_PATH as string;
|
|
const location = path.join(extensionsPath, type);
|
|
|
|
return await listFolders(location);
|
|
}
|