1
0
Fork 0

Removed Tailwind css, moved api to v1 dir

This commit is contained in:
Neshura 2023-06-08 21:21:34 +02:00
parent c8f96eb694
commit c9fba4666e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
18 changed files with 195 additions and 453 deletions
components/tables

View file

@ -5,13 +5,13 @@ import useSWR from "swr";
const fetcher = async (url:any) => await fetch(url).then((res) => res.json());
export const EmpireStats = () => {
const {data} = useSWR('/api/empires',fetcher);
const {data} = useSWR('/api/v1/empires',fetcher);
let ret;
if (data) {
ret = (
<div className="text-blue-600">{data.empireCount} Empires</div>
<div className="active">{data.empireCount} Empires</div>
)
}
else {