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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1538
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

10
Cargo.toml Normal file
View File

@ -0,0 +1,10 @@
[package]
name = "ozai"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = { version = "0.5.0", features = ["json"] }

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])
}