You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: app.rs
    path of file: ./repos/newbee-mall-api-rs/src/bootstrap
    
    the code of the file until where you have to start completion: use actix_cors::Cors;
use actix_files::Files;
use actix_web::middleware::Logger;
use actix_web::{web, App, HttpServer};
use dotenvy::dotenv;
use tracing_actix_web::TracingLogger;

use crate::constant::FILE_UPLOAD_DIC;
use crate::{config, routes};

pub async fn start() -> std::io::Result<()> {
    dotenv().ok();
    tracing_subscriber::fmt::init();

    HttpServer::new(move || {
        let data = web::Data::new(super::database::connection());

        App::new()
            .wrap(Logger::default())
            .wrap(TracingLogger::default())
            .wrap(Cors::permissive())
            .app_data(web::Data::clone(&data))
            .service(Files::new("/upload", FILE_UPLOAD_DIC).show_files_listing())
            .service(Files::new("/goods-img", FILE_UPLOAD_DIC).show_files_
    
pub async fn start() -> std::io::Result<()> {
    dotenv().ok();
    tracing_subscriber::fmt::init();

    HttpServer::new(move || {
        let data = web::Data::new(super::database::connection());

        App::new()
            .wrap(Logger::default())
            .wrap(TracingLogger::default())
            .wrap(Cors::permissive())
            .app_data(web::Data::clone(&data))
            .service(Files::new("/upload", FILE_UPLOAD_DIC).show_files_listing())
            .service(Files::new("/goods-img", FILE_UPLOAD_DIC).show_files_listing())
            .service(
                web::scope("/api")
                    .wrap(crate::middleware::authentication::MallAuthentication)
                    .configure(routes::mall::register_routes),
            )
            .service(
                web::scope("/manage-api")
                    .wrap(crate::middleware::authentication::AdminAuthentication)
                    .configure(routes::admin::register_routes),
            )
    })
    .bind((config::APP.host.as_str(), config::APP.port))?
    .run()
    .await
}