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