test(api): create a way to check current working directory
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user