From fd7a53d4d9d7bf7ddf9437e099731f2b4366ce94 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 20 Aug 2021 20:05:08 -0700 Subject: [PATCH] Get root files --- pages/api/hello.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/hello.js b/pages/api/hello.js index eca9a121..35c2dc14 100644 --- a/pages/api/hello.js +++ b/pages/api/hello.js @@ -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('/'), }); }