mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
10 lines
239 B
TypeScript
10 lines
239 B
TypeScript
import type {Domain} from '.'
|
|
import { request} from '.'
|
|
|
|
export async function getDomain(ldhName: string): Promise<Domain> {
|
|
const response = await request<Domain>({
|
|
url: 'domains/' + ldhName
|
|
})
|
|
return response.data
|
|
}
|