mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 01:48:12 +09:00
fix: jump to domain directly
This commit is contained in:
@@ -20,7 +20,7 @@ export default async function handler(
|
||||
);
|
||||
const body = await response.text();
|
||||
const json = JSON.parse(body.slice(5));
|
||||
console.log(json[1][1][0]);
|
||||
|
||||
const items = json[1][1].map((item: any) => ({
|
||||
id: item[0],
|
||||
name: item[1],
|
||||
|
@@ -19,7 +19,7 @@ export default async function handler(
|
||||
'GET'
|
||||
);
|
||||
const json = await response.json();
|
||||
console.log(json.results.map((i: any) => i.name));
|
||||
|
||||
const items = json.results.map((item: any) => {
|
||||
const locale = item.name._default || 'en-US';
|
||||
return {
|
||||
|
Reference in New Issue
Block a user