omyacid: define /vendor-data and /network-config
They do nothing for now.
This commit is contained in:
parent
a4c38c7d82
commit
f0d37da26d
|
@ -88,6 +88,10 @@ async fn get_user_data(
|
|||
}
|
||||
}
|
||||
|
||||
async fn ignored() -> &'static str {
|
||||
""
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> ExitCode {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
@ -127,6 +131,8 @@ async fn main() -> ExitCode {
|
|||
let app = Router::new()
|
||||
.route("/meta-data", get(get_meta_data))
|
||||
.route("/user-data", get(get_user_data))
|
||||
.route("/vendor-data", get(ignored))
|
||||
.route("/network-config", get(ignored))
|
||||
.with_state(ctx);
|
||||
if let Err(err) = axum::serve(
|
||||
http_sock,
|
||||
|
|
Loading…
Reference in a new issue