mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Improve code reuse
This commit is contained in:
4
main.go
4
main.go
@@ -44,13 +44,13 @@ func main() {
|
||||
app.Get("/:postID.gifv", pages.HandleEmbed)
|
||||
app.Get("/:baseName.:extension", pages.HandleMedia)
|
||||
app.Get("/:postID", pages.HandlePost)
|
||||
app.Get("/a/:galleryID", pages.HandleGallery)
|
||||
app.Get("/a/:postID", pages.HandlePost)
|
||||
app.Get("/t/:tag", pages.HandleTag)
|
||||
app.Get("/user/:userID", pages.HandleUser)
|
||||
app.Get("/r/:sub/:postID", pages.HandlePost)
|
||||
app.Get("/user/:userID/cover", pages.HandleUserCover)
|
||||
app.Get("/user/:userID/avatar", pages.HandleUserAvatar)
|
||||
app.Get("/gallery/:galleryID", pages.HandleGallery)
|
||||
app.Get("/gallery/:postID", pages.HandlePost)
|
||||
|
||||
app.Listen(":" + utils.Config["port"].(string))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user