surrealpatch/lib/examples/rocket/src/main.rs

11 lines
196 B
Rust
Raw Normal View History

#[macro_use]
extern crate rocket;
use rocket_example::{create_db_connection, router};
#[launch]
async fn rocket() -> _ {
let db_conn = create_db_connection().await.unwrap();
router(db_conn)
}