🚚 Better name for response page errors
This commit is contained in:
parent
68ed0f78b9
commit
09cb6bd7fa
12 changed files with 36 additions and 36 deletions
|
|
@ -13,7 +13,7 @@ impl ModuleTrait for HelloName {
|
|||
async fn hello_name(
|
||||
request: service::HttpRequest,
|
||||
path: service::web::Path<String>,
|
||||
) -> ResultPage<Markup, FatalError> {
|
||||
) -> ResultPage<Markup, ErrorPage> {
|
||||
let name = path.into_inner();
|
||||
Page::new(request)
|
||||
.with_component_in("content", Html::with(html! { h1 { "Hello " (name) "!" } }))
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ impl ModuleTrait for HelloWorld {
|
|||
}
|
||||
}
|
||||
|
||||
async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, FatalError> {
|
||||
async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, ErrorPage> {
|
||||
Page::new(request)
|
||||
.with_component_in("content", Html::with(html! { h1 { "Hello World!" } }))
|
||||
.render()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue