 			get "/details", HtmlPollController, :details
 			resources "/vote", HtmlVoteController, only: [:index, :create, :delete]
 			resources "/references", HtmlReferenceController, only: [:index, :show]
-			get "/embed", HtmlPollController, :embed
 		end
 
 		get "/explore", HtmlExploreController, :index

		get "/search", HtmlExploreController, :search
	end

	scope "/api", Liquio do
		pipe_through :api


		plug :fetch_session
		plug :fetch_flash
		plug :protect_from_forgery
		plug :put_secure_browser_headers
		
		plug Guardian.Plug.VerifySession
		plug Guardian.Plug.LoadResource
	end

	pipeline :embed do
		plug :accepts, ["html"]
		plug :fetch_session

		plug Guardian.Plug.VerifySession
		plug Guardian.Plug.LoadResource
	end
