test(api): create a way to check current working directory

This commit is contained in:
parent a49d8c1f63
commit d6c12d5ed8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -0,0 +1,13 @@
import { log } from "@server/logger";
import * as fs from "fs";
export default eventHandler(async (ev) => {
try {
fs.readFileSync("tmp/.gitkeep");
} catch (e) {
log.error(e);
}
return {
cwd: process.cwd(),
};
});