mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
return nb_alias in GET /api/custom_domains
This commit is contained in:
parent
9d24b1b88a
commit
de495b9afe
@ -10,6 +10,7 @@ def custom_domain_to_dict(custom_domain: CustomDomain):
|
|||||||
"id": custom_domain.id,
|
"id": custom_domain.id,
|
||||||
"domain": custom_domain.domain,
|
"domain": custom_domain.domain,
|
||||||
"verified": custom_domain.verified,
|
"verified": custom_domain.verified,
|
||||||
|
"nb_alias": custom_domain.nb_alias(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -639,11 +639,13 @@ List of custom domains.
|
|||||||
{
|
{
|
||||||
"domain": "test1.org",
|
"domain": "test1.org",
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
"nb_alias": 0,
|
||||||
"verified": true
|
"verified": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"domain": "test2.org",
|
"domain": "test2.org",
|
||||||
"id": 2,
|
"id": 2,
|
||||||
|
"nb_alias": 0,
|
||||||
"verified": false
|
"verified": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -19,7 +19,7 @@ def test_get_custom_domains(flask_client):
|
|||||||
assert r.status_code == 200
|
assert r.status_code == 200
|
||||||
assert r.json == {
|
assert r.json == {
|
||||||
"custom_domains": [
|
"custom_domains": [
|
||||||
{"domain": "test1.org", "id": 1, "verified": True},
|
{"domain": "test1.org", "id": 1, "nb_alias": 0, "verified": True},
|
||||||
{"domain": "test2.org", "id": 2, "verified": False},
|
{"domain": "test2.org", "id": 2, "nb_alias": 0, "verified": False},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user