mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
test 1
This commit is contained in:
parent
4f38242927
commit
8c01f68d14
3 changed files with 19 additions and 0 deletions
|
|
@ -71,6 +71,7 @@
|
|||
"date-fns": "^2.22.1",
|
||||
"date-fns-tz": "^1.1.4",
|
||||
"detect-browser": "^5.2.0",
|
||||
"directory-tree": "^2.2.9",
|
||||
"dotenv": "^8.2.0",
|
||||
"formik": "^2.2.9",
|
||||
"immer": "^9.0.5",
|
||||
|
|
|
|||
13
pages/api/test.js
Normal file
13
pages/api/test.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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()),
|
||||
});
|
||||
};
|
||||
|
|
@ -3180,6 +3180,11 @@ dir-glob@^3.0.1:
|
|||
dependencies:
|
||||
path-type "^4.0.0"
|
||||
|
||||
directory-tree@^2.2.9:
|
||||
version "2.2.9"
|
||||
resolved "https://registry.yarnpkg.com/directory-tree/-/directory-tree-2.2.9.tgz#702c193f8b19f1076b585bcf8a2db3b49b11a11c"
|
||||
integrity sha512-BOHxPNvP+XWijPkzoSBvr164IiNxRzvyAiWelbJsU/wG5OYXByer0+Aqo74G1qU+nRKC4yU/czmkmunkWdPPvQ==
|
||||
|
||||
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