ccbikai / Sink

⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
https://Sink.Cool
GNU Affero General Public License v3.0
2.98k stars 1.59k forks source link

[Feature Request] Return Shortened Link Directly in JSON Response #82

Open abusayed0206 opened 1 week ago

abusayed0206 commented 1 week ago

Feature Request: Return Shortened Link Directly in JSON Response

Is there a way to return the shortened link directly in the JSON response? Currently, ShareX cannot detect the dynamic link using https://baseurl/$json:link.slug$ in the URL field.

Do you plan to make any changes to the API to support this feature?


I've made some changes in the create/api code here:

Link to modified code

With this change, it’s working for ShareX!