Url Shortener

Here is hosted dbo.one's url shortener.
To use the api, send a request to this same url with the paramter url containing a valid url (with the protocol). You can also provide the optional parameter name to set a custom path name.
The api will reply to you either with {"error": "some error"} or with {"success": true, "url": "your short url", "alrExists": bool} (alrExists tells you if the selected name alr exists (and the api generated a random one instead)