| … | … | @@ -84,6 +84,10 @@ const directory = async (r) => { |
| 84 | 84 | } |
| 85 | 85 | return new Response(JSON.stringify(latest), {headers: header}) |
| 86 | 86 | } |
| 87 | if (key === 'all') { | |
| 88 | const q = await apds.query() | |
| 89 | return new Response(JSON.stringify(q), {headers: header}) | |
| 90 | } | |
| 87 | 91 | else if (key != '' && await apds.query(key)) { |
| 88 | 92 | const q = await apds.query(key) |
| 89 | 93 | return new Response(JSON.stringify(q), {headers: header}) |