surrealpatch/lib/examples/rocket/src/main.rs
Pratim 3dc00c8229
Add integration test for rocket (#3785)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-04-02 08:42:06 +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)
}