Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule PhoenixChannels.Router do
- use PhoenixChannels.Web, :router
- pipeline :browser do
- plug :accepts, ["html"]
- plug :fetch_session
- plug :fetch_flash
- plug :protect_from_forgery
- end
- pipeline :api do
- plug :accepts, ["json"]
- end
- scope "/", PhoenixChannels do
- pipe_through :browser # Use the default browser stack
- get "/", PageController, :index
- end
- socket "/ws", PhoenixChannels do
- channel "rooms:*", RoomChannel
- end
- # Other scopes may use custom stacks.
- # scope "/api", PhoenixChannels do
- # pipe_through :api
- # end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement