mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Commit broken code.
This commit is contained in:
parent
935a7f2737
commit
2d8628d0da
15
server/api/home/lt/[slug].ts
Normal file
15
server/api/home/lt/[slug].ts
Normal 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",
|
||||
};
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user