mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 11:13:29 +00:00
parent
ae6c49b0ba
commit
0b6bd050a0
|
@ -245,7 +245,7 @@ async fn main() {
|
|||
let app = app
|
||||
.route("/", get(|| async { "Spacedrive Server!" }))
|
||||
.fallback(|| async { "404 Not Found: We're past the event horizon..." })
|
||||
.layer(middleware::from_fn_with_state(state, basic_auth));
|
||||
.layer(axum::middleware::from_fn_with_state(state, basic_auth));
|
||||
|
||||
let mut addr = "[::]:8080".parse::<SocketAddr>().unwrap(); // This listens on IPv6 and IPv4
|
||||
addr.set_port(port);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::{
|
||||
invalidate_query,
|
||||
node::{
|
||||
config::{NodeConfig, NodeConfigP2P, NodePreferences, P2PDiscoveryState},
|
||||
config::{NodeConfig, NodeConfigP2P, NodePreferences},
|
||||
get_hardware_model_name, HardwareModel,
|
||||
},
|
||||
old_job::JobProgressEvent,
|
||||
|
|
Loading…
Reference in a new issue