FastWave2.0/backend/src/main.rs
2024-06-16 01:20:12 +02:00

21 lines
476 B
Rust

use moon::*;
async fn frontend() -> Frontend {
Frontend::new().title("FastWave").append_to_head(concat!(
"<style>",
include_str!("../style.css"),
"</style>"
)).append_to_head(concat!(
"<script type=\"module\">",
include_str!("../index.js"),
"</script>"
))
}
async fn up_msg_handler(_: UpMsgRequest<()>) {}
#[moon::main]
async fn main() -> std::io::Result<()> {
start(frontend, up_msg_handler, |_| {}).await
}