This commit is contained in:
JMARyA 2024-09-12 10:17:14 +02:00
parent e7fe303941
commit 6f9048e5b1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 92 additions and 56 deletions

View file

@ -35,6 +35,7 @@ impl Validate for Location {
impl ToAPI for Location {
async fn api(&self) -> serde_json::Value {
json!({
"id": self._id,
"name": self.name,
"parent": self.parent,
"conditions": self.conditions