Replace POST /worktrees rest endpoint with GET /rpc-address
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
2fd0f0be50
commit
f4dccc5353
+4
-3
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user