diff --git a/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs b/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs index d6b8713..5d2b8f0 100644 --- a/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs +++ b/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs @@ -18,6 +18,7 @@ public class PatchLikeEndpoint(UserPostsRepository userPostsRepository, UsersRep public override void Configure() { Patch("/Posts/{@PostId}/Like", x => new { x.PostId }); + Description(x => x.Accepts()); } public override async Task HandleAsync(PatchLikeRequest req, CancellationToken ct) diff --git a/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs b/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs index e927281..79a5f0e 100644 --- a/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs +++ b/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs @@ -8,6 +8,7 @@ public class GetPostByIdSpec : SingleResultSpecification public GetPostByIdSpec(int postId) { Query + .Include(x => x.User) .Where(x => x.Id == postId); } } \ No newline at end of file