pub fn mail_service(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::resource("/contact")
            .route(web::post().to(mail))
    );
}
/// Match a post to contact page.
Match a post to contact page.
Match a post to contact page .
pub fn mail_service(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::resource("/contact")
            .route(web::post().to(mail))
    );
}
pub fn mail_service ( cfg : & mut web :: ServiceConfig ) { cfg . service ( web :: resource ( " " ) . route ( web :: post ( ) . to ( mail ) ) ) ; }
Match a post to contact page.
Match a post to contact page .
cfg
&mut web::ServiceConfig
cfg
&mut web::ServiceConfig