Path: redb-route/redb.Route.Controllers/Attributes/RouteAttribute.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Controllers/Attributes/RouteAttribute.cs
----
namespace redb.Route.Controllers.Attributes;
///
/// Specifies the base route path for a controller.
/// Applied to classes inheriting .
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class RouteAttribute : Attribute
{
/// Route path template (e.g. "modules", "contexts").
public string Template { get; }
/// Route path template.
public RouteAttribute(string template)
{
Template = template ?? throw new ArgumentNullException(nameof(template));
}
}