feat: user can force domain refresh

This commit is contained in:
Maël Gangloff
2025-01-01 14:10:23 +01:00
parent 30f6ee3575
commit 3605f88a7c
5 changed files with 28 additions and 23 deletions

View File

@@ -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
}