mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Add two modes for short URLs
This commit is contained in:
@@ -25,6 +25,6 @@ class CreateShortUrlAction extends AbstractCreateShortUrlAction
|
||||
$payload[ShortUrlInputFilter::API_KEY] = AuthenticationMiddleware::apiKeyFromRequest($request);
|
||||
$payload[EnvVars::MULTI_SEGMENT_SLUGS_ENABLED->value] = $this->urlShortenerOptions->multiSegmentSlugsEnabled;
|
||||
|
||||
return ShortUrlCreation::fromRawData($payload);
|
||||
return ShortUrlCreation::fromRawData($payload, $this->urlShortenerOptions->mode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ class SingleStepCreateShortUrlAction extends AbstractCreateShortUrlAction
|
||||
ShortUrlInputFilter::API_KEY => $apiKey,
|
||||
// This will usually be null, unless this API key enforces one specific domain
|
||||
ShortUrlInputFilter::DOMAIN => $request->getAttribute(ShortUrlInputFilter::DOMAIN),
|
||||
]);
|
||||
], $this->urlShortenerOptions->mode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user