mirror of
https://gitlab.com/Anson-Projects/shuttle-christmas-code-hunt-2023.git
synced 2025-06-15 14:46:47 +00:00
clean up
This commit is contained in:
parent
8754cf5bc1
commit
b21d967505
@ -2,6 +2,8 @@
|
|||||||
name = "cch23-anson"
|
name = "cch23-anson"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
authors = ["Anson Biggs <anson@ansonbiggs.com>"]
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = "0.5.0"
|
rocket = "0.5.0"
|
||||||
|
@ -8,11 +8,10 @@ fn index() -> &'static str {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[get("/-1/error")]
|
#[get("/-1/error")]
|
||||||
fn error() -> Status{
|
fn error() -> Status {
|
||||||
Status::InternalServerError
|
Status::InternalServerError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[shuttle_runtime::main]
|
#[shuttle_runtime::main]
|
||||||
async fn main() -> shuttle_rocket::ShuttleRocket {
|
async fn main() -> shuttle_rocket::ShuttleRocket {
|
||||||
let rocket = rocket::build().mount("/", routes![index, error]);
|
let rocket = rocket::build().mount("/", routes![index, error]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user