A last.fm clone written in Elixir
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
726 B

defmodule DagonWeb.Router do
use DagonWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", DagonWeb do
pipe_through :browser
get "/", PageController, :index
resources "/artists", ArtistController
resources "/albums", AlbumController
resources "/tracks", TrackController
resources "/listens", ListenController
resources "/workers", WorkerController, only: [:index, :edit, :update]
end
# Other scopes may use custom stacks.
# scope "/api", DagonWeb do
# pipe_through :api
# end
end