Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Components/Components/src/RouteAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.AspNetCore.Components;

/// <summary>
Expand All @@ -13,7 +15,7 @@ public sealed class RouteAttribute : Attribute
/// Constructs an instance of <see cref="RouteAttribute"/>.
/// </summary>
/// <param name="template">The route template.</param>
public RouteAttribute(string template)
public RouteAttribute([StringSyntax("Route")] string template)
{
ArgumentNullException.ThrowIfNull(template);

Expand Down
Loading