🎉 Inits backend
This commit is contained in:
commit
b8d3d427a3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.idea/
|
1
backend/.gitignore
vendored
Normal file
1
backend/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/target
|
1633
backend/Cargo.lock
generated
Normal file
1633
backend/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
backend/Cargo.toml
Normal file
7
backend/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "backend"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
rocket = { version = "0.5.1" }
|
11
backend/src/main.rs
Normal file
11
backend/src/main.rs
Normal file
@ -0,0 +1,11 @@
|
||||
#[macro_use] extern crate rocket;
|
||||
|
||||
#[get("/")]
|
||||
async fn index() -> &'static str {
|
||||
"Hello World!"
|
||||
}
|
||||
|
||||
#[launch]
|
||||
fn rocket() -> _ {
|
||||
rocket::build().mount("/", routes![index])
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user