server.rs 160 B

12345
  1. pub async fn launch(db: &microrm::DB, port: u16) {
  2. let mut srv = tide::new();
  3. srv.listen(("127.0.0.1", port)).await.expect("couldn't bind to port");
  4. }