Move web server code into server module.

This commit is contained in:
dongar committed 2024-06-27 11:31:55 -05:00
1 parent 01ebdf710e
commit a54e7a341b
2 files changed
+16 -6

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
extern crate approx;
pub async fn run_server() {
rocket::build()
.mount("/", routes![hello])
.launch()
.await
.unwrap();
}
#[get("/")]
pub fn hello() -> &'static str {
"Hello, world!"
}