mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
import path from 'path';
|
|
import dirTree from 'directory-tree';
|
|
import { ok } from 'lib/response';
|
|
|
|
export default async (req, res) => {
|
|
return ok(res, {
|
|
dir: __dirname,
|
|
file: __filename,
|
|
cwd: process.cwd(),
|
|
path: path.resolve('.'),
|
|
files: dirTree(process.cwd()),
|
|
});
|
|
};
|