surrealpatch/sdk/examples/rocket/src/main.rs
2024-08-22 10:26:03 +00:00

10 lines
200 B
Rust

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