mirror of
https://github.com/RGBCube/Site
synced 2025-07-31 13:07:46 +00:00
Flatten errors module
This commit is contained in:
parent
7a62b78af2
commit
d7848fcb6f
4 changed files with 2 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,8 +2,6 @@
|
|||
|
||||
!src/
|
||||
!src/errors/
|
||||
!src/errors/internal_server_error/
|
||||
!src/errors/not_found/
|
||||
!src/page/
|
||||
!src/page/cube/
|
||||
!src/page/text/
|
||||
|
|
|
@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
|
|||
let response = response.set_body(
|
||||
cube::create(
|
||||
Some("Error"),
|
||||
asset::Css::Shared("not-found.css"),
|
||||
asset::Css::Shared("cube-grid.css"),
|
||||
array::from_fn(|_| {
|
||||
(html! {
|
||||
.frame { "error" }
|
|
@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
|
|||
let response = response.set_body(
|
||||
cube::create(
|
||||
Some("404"),
|
||||
asset::Css::Shared("not-found.css"),
|
||||
asset::Css::Shared("cube-grid.css"),
|
||||
array::from_fn(|_| {
|
||||
(html! {
|
||||
.frame {
|
Loading…
Add table
Add a link
Reference in a new issue