Bootstrap the /api namespace

This commit is contained in:
Claudio Ortolina
2024-12-21 14:38:39 +00:00
parent 89c9c4bf74
commit 4f456322fc
4 changed files with 40 additions and 0 deletions
+6
View File
@@ -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