Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 5f424ed

Browse files
makes more sense to list streams at /streams
1 parent 7b33c01 commit 5f424ed

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/SqlStreamStore.HAL/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static class Streams
7272
public static PathString AllStreamPath = new PathString($"/{All}");
7373
public static PathString StreamsPath = new PathString($"/{Stream}");
7474
public static PathString IndexPath = new PathString("/");
75-
public static PathString StreamBrowserPath = AllStreamPath.Add("/browser");
75+
public static PathString StreamBrowserPath = StreamsPath;
7676
}
7777

7878
public static class ReadDirection

src/SqlStreamStore.HAL/LinksExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ public static Links Find(this Links links)
99
=> links.Add(Constants.Relations.Find, "streams/{streamId}", "Find a Stream");
1010

1111
public static Links Browse(this Links links)
12-
=> links.Add(Constants.Relations.Browse, "stream/browser{?p,t,m}", "Browse Streams");
12+
=> links.Add(Constants.Relations.Browse, "streams{?p,t,m}", "Browse Streams");
1313
}
1414
}

src/SqlStreamStore.HAL/StreamBrowser/StreamBrowserLinkExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public static Links StreamBrowserNavigation(
3232
}
3333

3434
private static string FormatLink(ListStreamsOperation operation, string continuationToken) =>
35-
$"stream/browser?p={operation.Pattern.Value}&t={operation.PatternType}&c={continuationToken}&m={operation.MaxCount}";
35+
$"streams?p={operation.Pattern.Value}&t={operation.PatternType}&c={continuationToken}&m={operation.MaxCount}";
3636
}
3737
}

0 commit comments

Comments
 (0)