-
Notifications
You must be signed in to change notification settings - Fork 2
API
oriionn edited this page Aug 7, 2023
·
1 revision
POST /api/shorten
Name | Type | Description |
---|---|---|
link |
string |
Required. The URL to shorten. |
password |
string |
Optional. The password of the link. |
{
"status": 200,
"data": {
"original": "https://google.com",
"shorten": "http://quecto.local/abc123"
}
}
(The type of the body is multipart/form-data
)
(Precise the domain name in the config.js
file)
GET /api/s/:code
Name | Type | Description |
---|---|---|
password |
string |
Optional. The password of the link. |
{
"status": 200,
"data": {
"original": "https://google.com",
"shorten": "http://quecto.local/abc123"
}
}
GET /api/quectoCheck
{
"status": 200,
"data": {
"quecto": true
}
}