Api
Use an API route
We will be using swr to fetch data from the api. If you want you can use fetch
or axios
too.
Define a fetcher function
Define a fetcher function that will be used to fetch data from the api.
We will be using swr to fetch data from the api. If you want you can use fetch
or axios
too.
Define a fetcher function that will be used to fetch data from the api.