mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 06:21:57 +00:00
allow construction by making data
public
This commit is contained in:
parent
8994154b23
commit
33e166a462
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ pub struct RouteDefinition {
|
|||
/// The HTTP request methods this route is able to handle.
|
||||
pub methods: &'static [Method],
|
||||
/// A data loader function that will be called when this route is matched.
|
||||
pub(crate) data: Option<Loader>,
|
||||
pub data: Option<Loader>,
|
||||
/// The route's preferred mode of static generation, if any
|
||||
pub static_mode: Option<StaticMode>,
|
||||
/// The data required to fill any dynamic segments in the path during static rendering.
|
||||
|
|
Loading…
Reference in a new issue