mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Add apis into the api page & for now (devlog demo) don't save stuff into
the db.
This commit is contained in:
parent
64f4babe95
commit
9bf177f971
@ -45,6 +45,24 @@ const apis = [
|
||||
caching: 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,
|
||||
apiroute: "/api/ai/chat/[slug]",
|
||||
|
@ -91,9 +91,9 @@ export default defineEventHandler(async (event) => {
|
||||
});
|
||||
}
|
||||
});
|
||||
const pushNewsOrg = await sql`
|
||||
/*const pushNewsOrg = await sql`
|
||||
insert into
|
||||
`
|
||||
`*/
|
||||
cache[slug] = {
|
||||
slug: slug,
|
||||
title: newsOrgName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user