Add caching into the tabs system & change routes

This commit is contained in:
yuanhau 2025-05-26 10:57:54 +08:00
parent 5e676ad80f
commit 58de2c670d
3 changed files with 35 additions and 33 deletions

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import CheckKidUnfriendlyContent from "~/components/checks/checkKidUnfriendlyContent";
const pullTabsData = async () => {
const req = await fetch("/api/cached/tabs");
const req = await fetch("/api/tabs");
const data = await req.json();
return data.data;
};