Skip to content

Commit

Permalink
Revert "fix: add extension .mp4 to stream routes"
Browse files Browse the repository at this point in the history
This reverts commit f8c3a0a.
  • Loading branch information
trueChazza committed Apr 13, 2022
1 parent 1c11cf4 commit 8d0f912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/media_server_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ defmodule MediaServerWeb.Router do

live "/movies", MoviesLive.Index, :index
live "/movies/:movie", MoviesLive.Show, :show
get "/movies/:movie/stream", StreamMovieController, :show

live "/series", SeriesLive.Index, :index
live "/series/:serie", SeriesLive.Show, :show
live "/series/:serie/seasons/:season", SeasonsLive.Show, :show

get "/episodes/:episode/stream", StreamEpisodeController, :show

live_session :watch, root_layout: {MediaServerWeb.WatchView, "watch.html"} do
live "/movies/:movie/watch", WatchMovieLive.Show, :show
live "/episodes/:episode/watch", WatchEpisodeLive.Show, :show
end

get "/movies/:movie/stream.mp4", StreamMovieController, :show
get "/episodes/:episode/stream.mp4", StreamEpisodeController, :show

live "/continues", ContinuesLive.Index, :index
live "/favourites", FavouritesLive.Index, :index

Expand Down

0 comments on commit 8d0f912

Please sign in to comment.