Removed Tailwind css, moved api to v1 dir
This commit is contained in:
parent
c8f96eb694
commit
c9fba4666e
18 changed files with 195 additions and 453 deletions
components/tables
|
@ -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 {
|
||||
|
|
Reference in a new issue