Переработанная версия ядра
All checks were successful
CI / build-test (push) Successful in 42s

This commit is contained in:
2025-12-05 12:57:05 +03:00
parent ee175a35a0
commit d817417a69
81 changed files with 2335 additions and 1453 deletions

View File

@@ -0,0 +1,18 @@
namespace BotPages.Core.Routing;
/// <summary>
/// Атрибут для декларативного указания маршрута страницы.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RouteAttribute : Attribute
{
/// <summary>
/// Шаблон маршрута.
/// </summary>
public string Template { get; }
/// <summary>
/// Создать атрибут маршрута.
/// </summary>
public RouteAttribute(string template) => Template = template;
}