Delete old components from a month ago? & Update draggable window to be using the native svgs by lucide icons & updated the news page to activate the tab changing animation when changing tabs & added caching into the [slug].ts file in publishers/lt & added a basic endpoint for searching for sources.

This commit is contained in:
yuanhau 2025-06-04 22:30:02 +08:00
parent 231a7ce251
commit 8032c3faae
12 changed files with 124 additions and 117 deletions

View file

@ -0,0 +1,17 @@
import sql from "~/server/components/postgres";
export default defineEventHandler(async (event) => {
try {
const fetchDataInSQL = await sql`
SELECT * FROM lt_news_org;
`;
return {
data: fetchDataInSQL,
};
} catch (e) {
console.log(e);
return {
error: "SERVER_SIDE_ERR",
elogs: e.message,
};
}
});