A valid route definition.
The path for your route.
This might be a specific URL path (e.g.,/myPage), or it might contain a variable used by a resolver (e.g., /myPage/:id).
/myPage
/myPage/:id
https://docs.flarum.org/extend/frontend-pages.html#route-resolvers-advanced
The component to render when this route matches.
Optional
A custom resolver class.
This should be the class itself, and not an instance of the class.
An instance of a route resolver.
A valid route definition.