Is it possible to use the phoenix scope
macro and drop some of the routes to the “root” scope namespace module?
So in the following example:
scope("/v1", ScopeNamespaceModule) do
pipe_through(:api)
get("/", <what goes here?>, :index)
get("/foo", Foo, :index)
end
going to “/” would call ScopeNamespaceModule.call(conn, :index)
and going to “/foo” would call ScopeNamespaceModule.Foo.call(conn, :index)
?