diff options
author | crupest <crupest@outlook.com> | 2021-02-08 21:40:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 21:40:18 +0800 |
commit | e62cf8eb79c8b99eeff41a47b489af1ecde4fe49 (patch) | |
tree | 19511644c678f7bbb67d1b5aa14e5bd234f40c1f /BackEnd/Timeline/Models/Mapper | |
parent | e6ccb7b00c1433197bec872a47cd68ea81c44d7b (diff) | |
parent | 45b683d582d4a7760ffd69c4cd47841ce0545119 (diff) | |
download | timeline-e62cf8eb79c8b99eeff41a47b489af1ecde4fe49.tar.gz timeline-e62cf8eb79c8b99eeff41a47b489af1ecde4fe49.tar.bz2 timeline-e62cf8eb79c8b99eeff41a47b489af1ecde4fe49.zip |
Merge pull request #245 from crupest/post
Backend: post get and patch.
Diffstat (limited to 'BackEnd/Timeline/Models/Mapper')
-rw-r--r-- | BackEnd/Timeline/Models/Mapper/TimelineMapper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs index 94e55237..88c96d8a 100644 --- a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs +++ b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs @@ -49,7 +49,7 @@ namespace Timeline.Models.Mapper isBookmark: userId is not null && await _bookmarkTimelineService.IsBookmark(userId.Value, entity.Id, false, false),
links: new HttpTimelineLinks(
self: urlHelper.ActionLink(nameof(TimelineController.TimelineGet), nameof(TimelineController)[0..^nameof(Controller).Length], new { timeline = timelineName }),
- posts: urlHelper.ActionLink(nameof(TimelinePostController.PostList), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName })
+ posts: urlHelper.ActionLink(nameof(TimelinePostController.List), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName })
)
);
}
@@ -84,7 +84,7 @@ namespace Timeline.Models.Mapper (
type: TimelinePostContentTypes.Image,
text: null,
- url: urlHelper.ActionLink(nameof(TimelinePostController.PostDataGet), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName, post = entity.LocalId }),
+ url: urlHelper.ActionLink(nameof(TimelinePostController.DataGet), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName, post = entity.LocalId }),
eTag: $"\"{entity.Content}\""
),
_ => throw new DatabaseCorruptedException(string.Format(CultureInfo.InvariantCulture, "Unknown timeline post type {0}.", entity.ContentType))
|