add an example illistrating intigration with the router
This commit is contained in:
1 parent
976d4ab960
commit
bfcb0f6eab
15 files changed
+283
-72
No files matched your search
@@ -5,7 +5,6 @@ pub struct ServeConfig<P: Clone> {
|
||||
pub(crate) app: Component<P>,
|
||||
pub(crate) props: P,
|
||||
pub(crate) application_name: Option<&'static str>,
|
||||
pub(crate) server_fn_route: Option<&'static str>,
|
||||
pub(crate) base_path: Option<&'static str>,
|
||||
pub(crate) head: Option<&'static str>,
|
||||
}
|
||||
@@ -17,7 +16,6 @@ impl<P: Clone> ServeConfig<P> {
|
||||
app,
|
||||
props,
|
||||
application_name: None,
|
||||
server_fn_route: None,
|
||||
base_path: None,
|
||||
head: None,
|
||||
}
|
||||
@@ -29,12 +27,6 @@ impl<P: Clone> ServeConfig<P> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the base route all server functions will be served under
|
||||
pub fn server_fn_route(mut self, server_fn_route: &'static str) -> Self {
|
||||
self.server_fn_route = Some(server_fn_route);
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the path the WASM application will be served under
|
||||
pub fn base_path(mut self, base_path: &'static str) -> Self {
|
||||
self.base_path = Some(base_path);
|
||||
|
||||
Reference in new issue
Block a user