mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
Add a basic news view page.
This commit is contained in:
parent
4b7934552c
commit
f34da9f5c1
9 changed files with 90 additions and 25 deletions
|
@ -4,9 +4,9 @@ import sql from "~/server/components/postgres";
|
|||
const groq = new Groq();
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const host = getRequestHost(event);
|
||||
const protocol = getRequestProtocol(event);
|
||||
const hears = getRequestHeaders(event);
|
||||
const host = getRequestHost(event);
|
||||
const protocol = getRequestProtocol(event);
|
||||
const hears = getRequestHeaders(event);
|
||||
const slug = getRouterParam(event, "slug");
|
||||
const body = await readBody(event);
|
||||
if (!slug) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue