// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; namespace Squidex.Extensions.Actions.Prerender { [RuleAction( IconImage = "", IconColor = "#2c3e50", Display = "Recache URL", Description = "Recache a certain URL or cache a URL for the first time.", ReadMore = "https://prerender.io")] public sealed class PrerenderAction : RuleAction { [Required] [Display(Name = "Token", Description = "The prerender token from your account.")] [DataType(DataType.Text)] [Formattable] public string Token { get; set; } [Required] [Display(Name = "Url", Description = "The url to recache.")] [DataType(DataType.Text)] public string Url { get; set; } } }