mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Add apis into the api page & for now (devlog demo) don't save stuff into
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
the db.
This commit is contained in:
parent
64f4babe95
commit
9bf177f971
2 changed files with 20 additions and 2 deletions
|
@ -45,6 +45,24 @@ const apis = [
|
||||||
caching: true,
|
caching: true,
|
||||||
openAccess: true,
|
openAccess: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: NewspaperIcon,
|
||||||
|
apiroute: "/api/platform/lt_all",
|
||||||
|
name: "Get the news article from LT",
|
||||||
|
content:
|
||||||
|
"Using the native /api/publishers/lt/[slug] thingy, it will use the stuff from the publishers lt endpoint to get & store data, and will be viewable via this endpoint.",
|
||||||
|
caching: true,
|
||||||
|
openAccess: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: NewspaperIcon,
|
||||||
|
apiroute: "/api/publishers/lt/[slug]",
|
||||||
|
name: "Get publishers from LT",
|
||||||
|
content:
|
||||||
|
"This endpoint requires the slug to be filled in, in order to get it to work.",
|
||||||
|
caching: true,
|
||||||
|
openAccess: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: BotMessageSquareIcon,
|
icon: BotMessageSquareIcon,
|
||||||
apiroute: "/api/ai/chat/[slug]",
|
apiroute: "/api/ai/chat/[slug]",
|
||||||
|
|
|
@ -91,9 +91,9 @@ export default defineEventHandler(async (event) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const pushNewsOrg = await sql`
|
/*const pushNewsOrg = await sql`
|
||||||
insert into
|
insert into
|
||||||
`
|
`*/
|
||||||
cache[slug] = {
|
cache[slug] = {
|
||||||
slug: slug,
|
slug: slug,
|
||||||
title: newsOrgName,
|
title: newsOrgName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue