mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: user can force domain refresh
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import type {Domain} from '.'
|
||||
import { request} from '.'
|
||||
import {request} from '.'
|
||||
|
||||
export async function getDomain(ldhName: string): Promise<Domain> {
|
||||
export async function getDomain(ldhName: string, forced = false): Promise<Domain> {
|
||||
const response = await request<Domain>({
|
||||
url: 'domains/' + ldhName
|
||||
url: 'domains/' + ldhName,
|
||||
params: {forced}
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user