pub fn register() -> Scope {
    web::scope("/admin").service(
        web::scope("/user")
            .route("/", web::get().to(get_users))
            .route("/", web::post().to(get_users))
            .route("/{id}", web::delete().to(get_user))
            .route("/{id}", web::put().to(get_user))
            .route("/{id}", web::get().to(get_user)),
    )
}
/// register - this will register all the endpoint in admin route
this will register all the endpoint in admin route
this will register all the endpoint in admin route
pub fn register() -> Scope {
    web::scope("/admin").service(
        web::scope("/user")
            .route("/", web::get().to(get_users))
            .route("/", web::post().to(get_users))
            .route("/{id}", web::delete().to(get_user))
            .route("/{id}", web::put().to(get_user))
            .route("/{id}", web::get().to(get_user)),
    )
}
pub fn register ( ) -> Scope { web :: scope ( " " ) . service ( web :: scope ( " " ) . route ( " " , web :: get ( ) . to ( get_users ) ) . route ( " " , web :: post ( ) . to ( get_users ) ) . route ( " " , web :: delete ( ) . to ( get_user ) ) . route ( " " , web :: put ( ) . to ( get_user ) ) . route ( " " , web :: get ( ) . to ( get_user ) ) , ) }
register - this will register all the endpoint in admin route
register - this will register all the endpoint in admin route