mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Support /t/TAG/ID paths (closes #117)
This commit is contained in:
@@ -20,6 +20,8 @@ func HandlePost(c *fiber.Ctx) error {
|
||||
post, err = ApiClient.FetchAlbum(c.Params("postID"))
|
||||
case strings.HasPrefix(c.Path(), "/gallery"):
|
||||
post, err = ApiClient.FetchPosts(c.Params("postID"))
|
||||
case strings.HasPrefix(c.Path(), "/t"):
|
||||
post, err = ApiClient.FetchPosts(c.Params("postID"))
|
||||
default:
|
||||
post, err = ApiClient.FetchMedia(c.Params("postID"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user