Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 17, 2024
1 parent 08955fc commit c55e0e2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ func main() {
r.Use(middleware.StripSlashes)
r.Mount("/debug", middleware.Profiler())

r.Get("/tv/{postID}/", handlers.Embed)
r.Get("/reel/{postID}/", handlers.Embed)
r.Get("/reels/{postID}/", handlers.Embed)
r.Get("/stories/{username}/{postID}/", handlers.Embed)
r.Get("/p/{postID}/", handlers.Embed)
r.Get("/p/{postID}/{mediaNum}/", handlers.Embed)
r.Get("/tv/{postID}", handlers.Embed)
r.Get("/reel/{postID}", handlers.Embed)
r.Get("/reels/{postID}", handlers.Embed)
r.Get("/stories/{username}/{postID}", handlers.Embed)
r.Get("/p/{postID}", handlers.Embed)
r.Get("/p/{postID}/{mediaNum}", handlers.Embed)

r.Get("/{username}/p/{postID}", handlers.Embed)
r.Get("/{username}/p/{postID}/{mediaNum}", handlers.Embed)
r.Get("/{username}/reel/{postID}", handlers.Embed)

r.Get("/images/{postID}/{mediaNum}/", handlers.Images)
r.Get("/videos/{postID}/{mediaNum}/", handlers.Videos)
r.Get("/grid/{postID}/", handlers.Grid)
r.Get("/oembed/", handlers.OEmbed)
r.Get("/images/{postID}/{mediaNum}", handlers.Images)
r.Get("/videos/{postID}/{mediaNum}", handlers.Videos)
r.Get("/grid/{postID}", handlers.Grid)
r.Get("/oembed", handlers.OEmbed)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
views.Home(w)
Expand Down

0 comments on commit c55e0e2

Please sign in to comment.