stranka configuration
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import axios, { type AxiosInstance } from 'axios'
|
||||
|
||||
import type { FullStatusResponse } from '../types/fullStatus'
|
||||
import type { SiteConfigurationResponse } from '../types/siteConfiguration'
|
||||
import type { Notification } from '../types/dashboard'
|
||||
import type { CurrentPlanResponse, RunPlanResponse } from '../types/plan'
|
||||
|
||||
@@ -53,6 +54,11 @@ export async function getSiteStatusFull(siteId: number): Promise<FullStatusRespo
|
||||
return data
|
||||
}
|
||||
|
||||
export async function getSiteConfiguration(siteId: number): Promise<SiteConfigurationResponse> {
|
||||
const { data } = await client.get<SiteConfigurationResponse>(`/sites/${siteId}/configuration`)
|
||||
return data
|
||||
}
|
||||
|
||||
export type SiteNotificationsResponse = {
|
||||
notifications: Notification[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user