mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Get root files
This commit is contained in:
parent
653f96ac08
commit
fd7a53d4d9
1 changed files with 1 additions and 1 deletions
|
|
@ -4,10 +4,10 @@ import dirTree from 'directory-tree';
|
||||||
|
|
||||||
export default function handler(req, res) {
|
export default function handler(req, res) {
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
name: 'John Doe',
|
|
||||||
filename: __filename,
|
filename: __filename,
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
cwd: process.cwd(),
|
cwd: process.cwd(),
|
||||||
files: dirTree(process.cwd()),
|
files: dirTree(process.cwd()),
|
||||||
|
rootFiles: dirTree('/'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue