11 lines
280 B
TypeScript
Raw Normal View History

2024-12-31 13:55:42 +01:00
import type {Domain} from '.'
2025-01-01 14:10:23 +01:00
import {request} from '.'
2024-07-25 02:09:49 +02:00
2025-01-01 14:10:23 +01:00
export async function getDomain(ldhName: string, forced = false): Promise<Domain> {
2024-07-25 02:09:49 +02:00
const response = await request<Domain>({
2025-01-01 14:10:23 +01:00
url: 'domains/' + ldhName,
params: {forced}
2024-07-25 02:09:49 +02:00
})
return response.data
}