2024-03-20 17:10:07 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
use rocket_example::{create_db_connection, router};
|
|
|
|
|
|
|
|
#[launch]
|
2024-04-02 08:42:06 +00:00
|
|
|
pub async fn rocket() -> _ {
|
2024-03-20 17:10:07 +00:00
|
|
|
let db_conn = create_db_connection().await.unwrap();
|
|
|
|
router(db_conn)
|
|
|
|
}
|