Skip to content

Commit 7a50efe

Browse files
authored
Merge pull request #49 from rhaym-tech/patch-2
Update Base URL to latest
2 parents 249fa73 + 17f1de6 commit 7a50efe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/rest-api/start.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Authorization: MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs
5454
/*
5555
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5656
*/
57-
const url = "https://waifu.it/api/:endpoint"
57+
const url = "https://waifu.it/api/v4/:endpoint"
5858
const data = async () => {
5959
try {
6060
const { data } = await axios.get(url, { headers: {
@@ -79,7 +79,7 @@ Authorization: MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs
7979
"""
8080
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
8181
"""
82-
url = "https://waifu.it/api/:endpoint"
82+
url = "https://waifu.it/api/v4/:endpoint"
8383
response = requests.get(url, headers={
8484
"Authorization": "Your-API-Token",
8585
})

0 commit comments

Comments
 (0)