Skip to main content

bootstrap

Function bootstrap 

Source
pub async fn bootstrap<M: MigratorTrait + Send + Sync + 'static, S: SeederTrait + Send + Sync + 'static>(
    args: &[String],
    app_router: Router<AppState>,
    embedded_templates: fn(&str) -> Option<EmbeddedFile>,
    embedded_public: fn(&str) -> Option<EmbeddedFile>,
    seeder: Option<S>,
)