mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 01:48:12 +09:00
fix: normalize app store result
This commit is contained in:
@@ -8,6 +8,8 @@ interface App {
|
||||
version: string;
|
||||
price: string;
|
||||
trackViewUrl: string;
|
||||
sellerName: string;
|
||||
formattedPrice: string;
|
||||
}
|
||||
|
||||
interface AppStoreResponse {
|
||||
@@ -37,9 +39,7 @@ export default async function handler(
|
||||
const apps = body.results.map((app) => ({
|
||||
id: app.trackId,
|
||||
name: app.trackName,
|
||||
kind: app.kind,
|
||||
version: app.version,
|
||||
price: app.price,
|
||||
author: app.sellerName,
|
||||
viewURL: app.trackViewUrl,
|
||||
}));
|
||||
send(res, { result: apps });
|
||||
|
Reference in New Issue
Block a user