Revert "Start backend with rocket.rs"

This reverts commit 28011b8f93.
This commit is contained in:
2021-11-09 21:41:29 +01:00
parent b246ba83d1
commit 7edf459485
5 changed files with 0 additions and 1440 deletions

View File

@@ -1,20 +0,0 @@
#[macro_use]
extern crate rocket;
use rocket::serde::{json::Json, Serialize};
#[derive(Serialize)]
struct Greeting<'a> {
hello: &'a str,
}
#[get("/")]
fn index() -> Json<Greeting<'static>> {
Json(Greeting {
hello: "Hello, world!",
})
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/api/", routes![index])
}