Add REST route to get networks list
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user