17 lines
274 B
Rust
17 lines
274 B
Rust
use rocket::fairing::AdHoc;
|
|
|
|
mod db;
|
|
mod route;
|
|
mod util;
|
|
mod cluster;
|
|
pub mod entity;
|
|
pub use db::Db;
|
|
pub mod services;
|
|
|
|
pub fn init() -> AdHoc {
|
|
AdHoc::on_ignite("mod(db)", |rocket| async {
|
|
rocket.attach(db::init())
|
|
.attach(route::init())
|
|
})
|
|
}
|