mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +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/
|
||||||
!src/errors/
|
!src/errors/
|
||||||
!src/errors/internal_server_error/
|
|
||||||
!src/errors/not_found/
|
|
||||||
!src/page/
|
!src/page/
|
||||||
!src/page/cube/
|
!src/page/cube/
|
||||||
!src/page/text/
|
!src/page/text/
|
||||||
|
|
|
@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
|
||||||
let response = response.set_body(
|
let response = response.set_body(
|
||||||
cube::create(
|
cube::create(
|
||||||
Some("Error"),
|
Some("Error"),
|
||||||
asset::Css::Shared("not-found.css"),
|
asset::Css::Shared("cube-grid.css"),
|
||||||
array::from_fn(|_| {
|
array::from_fn(|_| {
|
||||||
(html! {
|
(html! {
|
||||||
.frame { "error" }
|
.frame { "error" }
|
|
@ -19,7 +19,7 @@ pub fn handler<B: 'static>(
|
||||||
let response = response.set_body(
|
let response = response.set_body(
|
||||||
cube::create(
|
cube::create(
|
||||||
Some("404"),
|
Some("404"),
|
||||||
asset::Css::Shared("not-found.css"),
|
asset::Css::Shared("cube-grid.css"),
|
||||||
array::from_fn(|_| {
|
array::from_fn(|_| {
|
||||||
(html! {
|
(html! {
|
||||||
.frame {
|
.frame {
|
Loading…
Add table
Add a link
Reference in a new issue