added PWA
This commit is contained in:
parent
07e52d26ce
commit
2fa3ec2f95
21 changed files with 2682 additions and 42365 deletions
|
|
@ -3,7 +3,7 @@ import useSWR from "swr"
|
|||
const fetcher = (...args) => fetch(...args).then((res) => res.json())
|
||||
|
||||
export function menuitemfetcher(url) {
|
||||
const { data, error, isLoading } = useSWR("https://jsonplaceholder.typicode.com/posts", fetcher)
|
||||
const { data, error, isLoading } = useSWR("http://192.168.178.20:3001/data", fetcher)
|
||||
|
||||
return {
|
||||
data: data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue