Skip to content

Commit ca94b4c

Browse files
committed
fix: unifi controller using http returns different response format
Closes sub issue of #3.
1 parent 0f0a0cc commit ca94b4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/models.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub struct CreateVoucherRequest {
4646

4747
#[derive(Debug, Serialize, Deserialize)]
4848
pub struct CreateVoucherResponse {
49+
#[serde(alias = "data")]
4950
pub vouchers: Vec<Voucher>,
5051
}
5152

0 commit comments

Comments
 (0)