get image

This commit is contained in:
zjt 2024-05-25 21:36:37 +08:00
parent da4b878859
commit 7260601060

View File

@ -18,7 +18,7 @@ const GetImageHandler: RequestHandler<Txt2ImgRequest, any> = async (ctx, next) =
ctx.body = 200;
return;
}
const data = await readJSONFile("../../data.json");
const data = await readJSONFile("./data.json");
ctx.body = {
data: data
}