Skip to content

Commit c8e136e

Browse files
authored
Update Base URL to latest
1 parent d38876d commit c8e136e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/rest-api/start.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Tab, Tabs,Callout } from "nextra-theme-docs";
55
## Base URL
66

77
```
8-
https://waifu.it/api
8+
https://waifu.it/api/v4
99
```
1010

1111
## API Versioning
@@ -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)