1
0
This commit is contained in:
Anson Biggs 2023-11-28 23:28:30 -07:00
parent 8754cf5bc1
commit b21d967505
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,8 @@
name = "cch23-anson"
version = "0.1.0"
edition = "2021"
authors = ["Anson Biggs <anson@ansonbiggs.com>"]
license = "MIT"
[dependencies]
rocket = "0.5.0"

View File

@ -8,11 +8,10 @@ fn index() -> &'static str {
}
#[get("/-1/error")]
fn error() -> Status{
Status::InternalServerError
fn error() -> Status {
Status::InternalServerError
}
#[shuttle_runtime::main]
async fn main() -> shuttle_rocket::ShuttleRocket {
let rocket = rocket::build().mount("/", routes![index, error]);