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

Commit 5ae6a40

Browse files
index rel
1 parent b41f5c5 commit 5ae6a40

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/SqlStreamStore.HAL/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static class Relations
2727
public const string Previous = "previous";
2828
public const string Next = "next";
2929
public const string Last = "last";
30+
public const string Index = "streamStore:index";
3031
public const string Feed = "streamStore:feed";
3132
public const string Message = "streamStore:message";
3233
public const string Metadata = "streamStore:metadata";

src/SqlStreamStore.HAL/SqlStreamStoreHalMiddleware.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ private static MidFunc MethodsNotAllowed(params string[] methods) => next => env
8080
}
8181

8282
var response = new Response(new HALResponse(null)
83-
.AddLinks(new Link(
84-
Constants.Relations.Feed,
85-
"stream")));
83+
.AddLinks(new Link(Constants.Relations.Feed, "stream"))
84+
.AddLinks(new Link(Constants.Relations.Self, string.Empty))
85+
.AddLinks(new Link(Constants.Relations.Index, string.Empty)));
8686

8787
return context.WriteHalResponse(response);
8888
};

0 commit comments

Comments
 (0)