get image
This commit is contained in:
@@ -18,7 +18,7 @@ const GetImageHandler: RequestHandler<Txt2ImgRequest, any> = async (ctx, next) =
|
|||||||
ctx.body = 200;
|
ctx.body = 200;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const data = await readJSONFile("../../data.json");
|
const data = await readJSONFile("./data.json");
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
data: data
|
data: data
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user