View Source Routex.Extension.Alternatives.Exceptions.MissingRootSlugError exception (Phoenix Routes Extension Framework v0.1.0-alpha.3)
Raised when the scope map does not start with the root scope "/".
%{
scopes: %{
"/first" => %{attrs: %{key1: 1}},
"/other" => %{attrs: %{key1: 1}}},
}
To fix this, include a scope for the root "/".
`%{
scopes: %{
"/" => %{
attrs: %{level: 1}
scopes: %{
"/first" => %{attrs: %{level: 2}},
"/other" => %{attrs: %{level: 2}}
}
},
}
}