Commit broken code.

This commit is contained in:
yuanhau 2025-05-20 16:40:36 +08:00
parent 935a7f2737
commit 2d8628d0da
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,15 @@
export default defineEventHandler(async (event) => {
try {
const slug = getRouterParam(event, "slug");
const urlBuild = "/api/home/uuid_lt/" + slug;
const articleArray = [];
const req = await fetch(urlBuild);
const res = await req.text();
return res;
} catch (e) {
console.log(e);
return {
error: "SERVER_SIDE_ERROR",
};
}
});