Skip to content

Commit 635a74a

Browse files
committed
feature(query): add endpoint in lab
1 parent 95fc821 commit 635a74a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/model.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl Query {
5050
let mut result: LabInstance = LabInstance {
5151
lang: resource.lang.clone(),
5252
name: resource.name.clone(),
53+
endpoint: lab.endpoint.clone(),
5354
content: String::new(),
5455
};
5556

@@ -98,6 +99,7 @@ struct Endpoint {
9899
#[derive(Deserialize, Serialize, SimpleObject, Debug, Clone)]
99100
struct Lab {
100101
id: String,
102+
endpoint: Vec<Endpoint>,
101103
resources: Vec<ResourceWithTranslation>,
102104
}
103105

@@ -106,6 +108,7 @@ struct LabInstance {
106108
lang: String,
107109
name: String,
108110
content: String,
111+
endpoint: Vec<Endpoint>,
109112
}
110113

111114
#[derive(Deserialize, Serialize, SimpleObject, Debug, Clone)]

0 commit comments

Comments
 (0)