init
This commit is contained in:
commit
31c9c600b0
59 changed files with 47825 additions and 0 deletions
16
backend/src/main.rs
Normal file
16
backend/src/main.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use moon::*;
|
||||
|
||||
async fn frontend() -> Frontend {
|
||||
Frontend::new().title("FastWave").append_to_head(concat!(
|
||||
"<style>",
|
||||
include_str!("../style.css"),
|
||||
"</style>"
|
||||
))
|
||||
}
|
||||
|
||||
async fn up_msg_handler(_: UpMsgRequest<()>) {}
|
||||
|
||||
#[moon::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
start(frontend, up_msg_handler, |_| {}).await
|
||||
}
|
Reference in a new issue