Replace POST /worktrees rest endpoint with GET /rpc-address

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Max Brunsfeld
2021-06-17 16:11:54 -07:00
co-authored by Antonio Scandurra
parent 2fd0f0be50
commit f4dccc5353
2 changed files with 15 additions and 14 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct CreateWorktreeResponse {
pub worktree_id: i32,
pub rpc_address: String,
pub struct GetRpcAddressResponse {
pub address: String,
}
pub const GET_RPC_ADDRESS_PATH: &'static str = "/api/rpc-address";