Add REST route to get networks list

This commit is contained in:
2023-10-31 10:51:13 +01:00
parent f2237d4f2f
commit 2741faa95b
7 changed files with 125 additions and 2 deletions

View File

@ -181,6 +181,7 @@ async fn main() -> std::io::Result<()> {
"/api/network/create",
web::post().to(network_controller::create),
)
.route("/api/network/list", web::get().to(network_controller::list))
})
.bind(&AppConfig::get().listen_address)?
.run()