feat: enhance localization by adding new app strings and descriptions; implement sources window for news sources display

This commit is contained in:
yuanhau 2025-05-12 13:53:11 +08:00
parent 3f60015b82
commit 26d3998a70
6 changed files with 86 additions and 9 deletions

View file

@ -0,0 +1,25 @@
import sql from "~/server/components/postgres";
export default defineEventHandler(async (event) => {
const body = await readBody(event);
const query = getQuery(event);
/*const sources = await sql`SELECT * FROM sources`;
return sources;*/
// Fake data
return {
status: "ok",
data: [
{
id: 1,
title: "Source 1",
url: "https://source1.com",
description: "Description for Source 1",
},
{
id: 2,
title: "Source 2",
url: "https://source2.com",
description: "Description for Source 2",
}
]
}
})