Implement /api/open/{id} to open a script by ID in your default editor

This commit is contained in:
Lucien Greathouse
2020-03-17 17:50:54 -07:00
parent aa4039a2e7
commit 102c77b23e
2 changed files with 86 additions and 4 deletions

View File

@@ -128,6 +128,13 @@ pub struct SubscribeResponse<'a> {
pub messages: Vec<SubscribeMessage<'a>>,
}
/// Response body from /api/open/{id}
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct OpenResponse {
pub session_id: SessionId,
}
/// General response type returned from all Rojo routes
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]