Add a few more database tables & made the api pull from the database

when then article exists & not ddos line today, Also made a basic
newsView with the api & the scraping script now scraps more stuff! :D
This commit is contained in:
yuanhau 2025-05-18 11:59:58 +08:00
parent fe5e2d996e
commit b62a3cda3d
6 changed files with 84 additions and 40 deletions

View file

@ -0,0 +1,11 @@
<script setup lang="ts">
const { data, error, pending } = useFetch("/api/get/lt/kEJjxKw"); //demo URL
</script>
<template>
<div class="justify-center align-center text-center flex flex-col">
<h2 class="text-3xl text-bold">{{ data.title }}</h2>
<span class="text-lg text-bold"
>origin: {{ data.origin }} author: {{ data.author }}</span
>
</div>
</template>