Skip to content

Commit

Permalink
slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 15, 2024
1 parent b9b548a commit 4d6c7ee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ func main() {
// mux.HandleFunc("GET /{username}/p/{postID}/{mediaNum}", handlers.Embed)
// mux.HandleFunc("GET /{username}/reel/{postID}", handlers.Embed)

mux.HandleFunc("GET /tv/{postID}", handlers.Embed)
mux.HandleFunc("GET /reel/{postID}", handlers.Embed)
mux.HandleFunc("GET /reels/{postID}", handlers.Embed)
mux.HandleFunc("GET /stories/{username}/{postID}", handlers.Embed)
mux.HandleFunc("GET /p/{postID}", handlers.Embed)
mux.HandleFunc("GET /p/{postID}/{mediaNum}", handlers.Embed)

mux.HandleFunc("/images/{postID}/{mediaNum}", handlers.Images)
mux.HandleFunc("/videos/{postID}/{mediaNum}", handlers.Videos)
mux.HandleFunc("/grid/{postID}", handlers.Grid)
mux.HandleFunc("/oembed", handlers.OEmbed)
mux.HandleFunc("GET /tv/{postID}/", handlers.Embed)
mux.HandleFunc("GET /reel/{postID}/", handlers.Embed)
mux.HandleFunc("GET /reels/{postID}/", handlers.Embed)
mux.HandleFunc("GET /stories/{username}/{postID}/", handlers.Embed)
mux.HandleFunc("GET /p/{postID}/", handlers.Embed)
mux.HandleFunc("GET /p/{postID}/{mediaNum}/", handlers.Embed)

mux.HandleFunc("/images/{postID}/{mediaNum}/", handlers.Images)
mux.HandleFunc("/videos/{postID}/{mediaNum}/", handlers.Videos)
mux.HandleFunc("/grid/{postID}/", handlers.Grid)
mux.HandleFunc("/oembed/", handlers.OEmbed)
mux.HandleFunc("/{$}", 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 4d6c7ee

Please sign in to comment.