This commit is contained in:
2024-01-27 22:21:59 +01:00
parent ac7d997620
commit fae6bc2a5e
4 changed files with 1562 additions and 0 deletions

13
src/main.rs Normal file
View File

@@ -0,0 +1,13 @@
use rocket::serde::{json::Json, Serialize};
#[macro_use]
extern crate rocket;
#[get("/")]
fn index() -> String {
"Hello, world!".to_string()
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}