mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
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:
parent
231a7ce251
commit
8032c3faae
12 changed files with 124 additions and 117 deletions
17
server/api/publishers/lt_all.ts
Normal file
17
server/api/publishers/lt_all.ts
Normal 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,
|
||||
};
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue