Skip to content

Commit 30c6691

Browse files
committed
Implemented new catch-all route pattern
OnTopic is setup to support either encoded or unencoded paths. But, moving foward, we should prefer the new catch-all `{**path}` syntax, as the unencoded paths are easier to work with for our requirements.
1 parent fe9d7a8 commit 30c6691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.AspNetCore.Mvc/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static ControllerActionEndpointConventionBuilder MapTopicRoute(
9898
) =>
9999
routes.MapControllerRoute(
100100
name: $"{rootTopic}Topic",
101-
pattern: rootTopic + "/{*path}",
101+
pattern: rootTopic + "/{**path}",
102102
defaults: new { controller, action, rootTopic }
103103
);
104104

0 commit comments

Comments
 (0)