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

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-01-03 17:55:06 -05:00
parent a49d8c1f63
commit d6c12d5ed8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -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(),
};
});