mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 08:43:13 +08:00
Simplified transactional URL shortening
This commit is contained in:
@@ -31,7 +31,7 @@ abstract class AbstractCreateShortUrlAction extends AbstractRestAction
|
||||
$tags = $shortUrlData->getTags();
|
||||
$shortUrlMeta = $shortUrlData->getMeta();
|
||||
|
||||
$shortUrl = $this->urlShortener->urlToShortCode($longUrl, $tags, $shortUrlMeta);
|
||||
$shortUrl = $this->urlShortener->shorten($longUrl, $tags, $shortUrlMeta);
|
||||
$transformer = new ShortUrlDataTransformer($this->domainConfig);
|
||||
|
||||
return new JsonResponse($transformer->transform($shortUrl));
|
||||
|
||||
Reference in New Issue
Block a user