mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Add hello api
This commit is contained in:
parent
61f138db43
commit
653f96ac08
3 changed files with 19 additions and 0 deletions
|
|
@ -71,6 +71,7 @@
|
|||
"date-fns": "^2.23.0",
|
||||
"date-fns-tz": "^1.1.4",
|
||||
"detect-browser": "^5.2.0",
|
||||
"directory-tree": "^2.3.1",
|
||||
"dotenv": "^8.2.0",
|
||||
"formik": "^2.2.9",
|
||||
"immer": "^9.0.5",
|
||||
|
|
|
|||
13
pages/api/hello.js
Normal file
13
pages/api/hello.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
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()),
|
||||
});
|
||||
}
|
||||
|
|
@ -3199,6 +3199,11 @@ dir-glob@^3.0.1:
|
|||
dependencies:
|
||||
path-type "^4.0.0"
|
||||
|
||||
directory-tree@^2.3.1:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/directory-tree/-/directory-tree-2.3.1.tgz#78b8aa84878eb84dd29a51dcd664ded4cd0247c7"
|
||||
integrity sha512-hxolIHCtQ/a56CUywaLzGD/V78zPwFihI+UK/4ZjOp7GoV4Mptmtv95yavOn/RlnTi7cCMjszvfcNrwCoWLH+Q==
|
||||
|
||||
dlv@^1.1.0:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79"
|
||||
|
|
|
|||
Loading…
Reference in a new issue