     plug :protect_from_forgery
     plug :put_secure_browser_headers
     plug SignDict.Plug.Locale
+  end
+
+  pipeline :embed do
+    plug :accepts, ["html"]
+    plug :fetch_session
+    plug SignDict.Plug.Locale
+
+    plug :fetch_flash
   end
 
   pipeline :api do

    get "/password/edit", ResetPasswordController, :edit
    put "/password",      ResetPasswordController, :update

    resources "/entry",  EntryController, only: [:show] do
      get "/video/:video_id", EntryController, :show, as: :video
    end

    resources "/embed",  EmbedController, only: [:show] do
      get "/video/:video_id", EmbedController, :show, as: :video
    end

    post "/video/:video_id/vote", VoteController, :create

  end

  scope "/", SignDict do
    pipe_through [:embed, :browser_session]

    resources "/embed", EmbedController, only: [:show] do
      get "/video/:video_id", EmbedController, :show, as: :video
    end
  end

  scope "/", SignDict do
    pipe_through [:browser, :browser_session]

    resources "/users",    UserController, except: [:delete]
