Get root files

This commit is contained in:
Mike Cao 2021-08-20 20:05:08 -07:00
parent 653f96ac08
commit fd7a53d4d9

View file

@ -4,10 +4,10 @@ import dirTree from 'directory-tree';
export default function handler(req, res) {
res.status(200).json({
name: 'John Doe',
filename: __filename,
dirname: __dirname,
cwd: process.cwd(),
files: dirTree(process.cwd()),
rootFiles: dirTree('/'),
});
}