adds API docs

This commit is contained in:
Christian Beutel
2024-03-23 20:19:20 +01:00
parent 6f01cecc22
commit 77b87e2d96
12 changed files with 113 additions and 9 deletions

View File

@@ -142,7 +142,7 @@
const cityItems = response.results[1].hits.map(
(c: Record<string, any>) => ({
text: c.name,
description: `City | ${c.division} | ${
description: `City ${c.division ? `| ${c.division} ` : ""}| ${
country_codes[
c["country code"] as keyof typeof country_codes
]