Skip to content

Commit 2e79407

Browse files
authored
Used [StringSyntax("Route")] in more places (#8692)
1 parent 3c9c49e commit 2e79407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HotChocolate/AspNetCore/src/AspNetCore.Pipeline/Extensions/EndpointRouteBuilderExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static IApplicationBuilder MapGraphQL(
160160
/// </exception>
161161
public static GraphQLHttpEndpointConventionBuilder MapGraphQLHttp(
162162
this IEndpointRouteBuilder endpointRouteBuilder,
163-
string pattern = GraphQLHttpPath,
163+
[StringSyntax("Route")] string pattern = GraphQLHttpPath,
164164
string? schemaName = null)
165165
=> MapGraphQLHttp(endpointRouteBuilder, Parse(pattern), schemaName);
166166

@@ -239,7 +239,7 @@ public static GraphQLHttpEndpointConventionBuilder MapGraphQLHttp(
239239
/// </exception>
240240
public static WebSocketEndpointConventionBuilder MapGraphQLWebSocket(
241241
this IEndpointRouteBuilder endpointRouteBuilder,
242-
string pattern = GraphQLWebSocketPath,
242+
[StringSyntax("Route")] string pattern = GraphQLWebSocketPath,
243243
string? schemaName = null)
244244
=> MapGraphQLWebSocket(endpointRouteBuilder, Parse(pattern), schemaName);
245245

@@ -317,7 +317,7 @@ public static WebSocketEndpointConventionBuilder MapGraphQLWebSocket(
317317
/// </exception>
318318
public static IEndpointConventionBuilder MapGraphQLSchema(
319319
this IEndpointRouteBuilder endpointRouteBuilder,
320-
string pattern = GraphQLSchemaPath,
320+
[StringSyntax("Route")] string pattern = GraphQLSchemaPath,
321321
string? schemaName = null)
322322
=> MapGraphQLSchema(endpointRouteBuilder, Parse(pattern), schemaName);
323323

0 commit comments

Comments
 (0)