Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit 8b80a2e

Browse files
committed
fix: prepare for once
1 parent b2eccb1 commit 8b80a2e

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Rocket.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ port = 8000
55
limits = { json = "10MiB" }
66

77
[release]
8-
port = 12500
8+
port = 80

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn rocket() -> _ {
1616
}
1717

1818
fn mount(rocket: Rocket<Build>) -> Rocket<Build> {
19-
let with_index = rocket.mount("/", routes![view::index,]);
19+
let with_index = rocket.mount("/", routes![view::index, view::up]);
2020

2121
let (asset_path, asset_routes) = assets::api();
2222

src/view/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ use maud::{html, Markup, PreEscaped};
22
use rocket::outcome::Outcome;
33
use rocket::request::{self, FromRequest, Request};
44
use rocket::response::content;
5-
65
mod html;
76

87
#[get("/")]
98
pub fn index(is_htmx: IsHtmx) -> content::RawHtml<String> {
109
content::RawHtml(page(is_htmx.is_htmx, html::get()).into_string())
1110
}
1211

12+
#[get("/up")]
13+
pub fn up() -> &'static str {
14+
"All up"
15+
}
16+
1317
const CSS: &str = r#"<link rel="stylesheet" href="_assets/app.css">"#;
1418
const PURE_CSS: &str = r#"<link rel="stylesheet" href="_assets/pure.css">"#;
1519
const PURE_GRID_CSS: &str = r#"<link rel="stylesheet" href="_assets/pure-grid.css">"#;

0 commit comments

Comments
 (0)