Bootstrap the /api namespace
This commit is contained in:
@@ -50,6 +50,12 @@ defmodule MusicLibraryWeb.Router do
|
||||
end
|
||||
end
|
||||
|
||||
scope "/api", MusicLibraryWeb do
|
||||
pipe_through :api
|
||||
|
||||
get "/collection/latest", CollectionController, :latest
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
# scope "/api", MusicLibraryWeb do
|
||||
# pipe_through :api
|
||||
|
||||
Reference in New Issue
Block a user