Class UrlShortingPublicController
Inheritance
UrlShortingPublicController
Implements
Inherited Members
Namespace: Volo.CmsKit.Public.UrlShorting
Assembly: Volo.CmsKit.Pro.Common.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKitPro.UrlShortingEnable" })]
[RequiresGlobalFeature(typeof(UrlShortingFeature))]
[RemoteService(true, Name = "CmsKitProCommon")]
[Area("cms-kit-pro-common")]
[Route("api/cms-kit-public/url-shorting")]
public class UrlShortingPublicController : CmsKitProCommonController, IAvoidDuplicateCrossCuttingConcerns, IUrlShortingPublicAppService, IApplicationService, IRemoteService
Constructors
UrlShortingPublicController(IUrlShortingPublicAppService)
Declaration
public UrlShortingPublicController(IUrlShortingPublicAppService urlShortingPublicAppService)
Parameters
Type | Name | Description |
---|---|---|
IUrlShortingPublicAppService | urlShortingPublicAppService |
Properties
UrlShortingPublicAppService
Declaration
protected IUrlShortingPublicAppService UrlShortingPublicAppService { get; }
Property Value
Type | Description |
---|---|
IUrlShortingPublicAppService |
Methods
FindBySourceAsync(string)
Declaration
[HttpGet]
public virtual Task<ShortenedUrlDto> FindBySourceAsync(string source)
Parameters
Type | Name | Description |
---|---|---|
string | source |
Returns
Type | Description |
---|---|
Task<ShortenedUrlDto> |