mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
import {Domain, request} from ".";
|
|
|
|
|
|
export async function getDomain(ldhName: string): Promise<Domain> {
|
|
const response = await request<Domain>({
|
|
url: 'domains/' + ldhName
|
|
})
|
|
return response.data
|
|
}
|