1
2
3
4
5
6
7
8
9
10
11
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export async function getAppleDevice(req: express.Request, res: express.Response) {
const deviceId = req.query.search_keywords as string;
const html = await fetchText(
`https://everymac.com/ultimate-mac-lookup/?search_keywords=${
encodeURI(deviceId)
}`,
);
res.end(html);
}