Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
6e62908
34
branches
Go to file
t
Code
ghost
apps
web
src
lib
fetch-client.ts
it now supports push and pull
50ad2a1
a month ago
13 lines · 329 B
1
import
createFetchClient
from
"
openapi-fetch
"
;
2
import
createClient
from
"
openapi-react-query
3
4
import
{
API_URL
}
5
6
import
type
{
paths
7
8
export
const
fetchClient
=
9
baseUrl
:
API_URL
,
10
credentials
:
"
include
"
,
11
}
)
;
12
13
export
const
api
=
"
;
from
"
@/lib/env
"
;
}
from
"
@/lib/api/v1
"
;
createFetchClient
<
paths
>
(
{
createClient
(
fetchClient
)
;