Skip to content

Commit e75d1af

Browse files
Fix Quickstart sample (#35006)
1 parent 6390ba8 commit e75d1af

File tree

1 file changed

+2
-2
lines changed
  • docs/orleans/quickstarts/snippets/url-shortener/orleansurlshortener

1 file changed

+2
-2
lines changed

docs/orleans/quickstarts/snippets/url-shortener/orleansurlshortener/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// <Endpoints>
1717
app.MapGet("/", () => "Hello World!");
1818

19-
app.MapGet("/shorten",
19+
app.MapGet("/shorten/{redirect}",
2020
async (IGrainFactory grains, HttpRequest request, string redirect) =>
2121
{
2222
// Create a unique, short ID
@@ -88,4 +88,4 @@ public record UrlDetails
8888
public string FullUrl { get; set; }
8989
public string ShortenedRouteSegment { get; set; }
9090
}
91-
// </grain>
91+
// </grain>

0 commit comments

Comments
 (0)