102cd1033c
* initial stub for ShutdownToken * attempting to start using new ShutdownManager in NymNode * migrated verloc tasks * added custom shutdown signal registration * integrated legacy task support * migrated additional tasks inside nym-node * removed import thats unused in wasm * apply review comments * windows fixes
21 lines
634 B
Rust
21 lines
634 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use axum::extract::connect_info::IntoMakeServiceWithConnectInfo;
|
|
use axum::extract::ConnectInfo;
|
|
use axum::middleware::AddExtension;
|
|
use axum::serve::Serve;
|
|
use axum::Router;
|
|
use std::net::SocketAddr;
|
|
|
|
pub use router::{api, HttpServerConfig, NymNodeRouter};
|
|
|
|
pub mod error;
|
|
pub mod helpers;
|
|
pub mod router;
|
|
pub mod state;
|
|
|
|
type InnerService = IntoMakeServiceWithConnectInfo<Router, SocketAddr>;
|
|
type ConnectInfoExt = AddExtension<Router, ConnectInfo<SocketAddr>>;
|
|
pub type NymNodeHttpServer = Serve<InnerService, ConnectInfoExt>;
|