Serve listings as array instead

main
gravel 2 years ago
parent f96dc0f65a
commit 68bc86cca9
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -107,28 +107,33 @@ Example response:
```json ```json
{ {
listings: { listings: [
"tech": { {
id: "tech",
name: "Tech Communities", name: "Tech Communities",
rooms: 5 rooms: 5
}, },
"privsec": { {
id: "privsec",
name: "Privacy & Security", name: "Privacy & Security",
rooms: 4 rooms: 4
}, },
"casual": { {
id: "casual",
name: "Casual Communities", name: "Casual Communities",
rooms: 3 rooms: 3
}, },
"nsfw": { {
id: "nsfw",
name: "18+ Communities", name: "18+ Communities",
rooms: 3 rooms: 3
} }
"all": { {
id: "all"
name: "All Communities", name: "All Communities",
rooms: 10 rooms: 10
} }
} ]
} }
``` ```
@ -140,4 +145,3 @@ Error responses:
- `404 Not Found` - `404 Not Found`
- Returned if the given listing does not exist. - Returned if the given listing does not exist.
Loading…
Cancel
Save