1 import { CustomPage, HttpStatusCode } from '@shared/models'
2 import { AbstractCommand, OverrideCommandOptions } from '../shared'
4 export class CustomPagesCommand extends AbstractCommand {
6 getInstanceHomepage (options: OverrideCommandOptions = {}) {
7 const path = '/api/v1/custom-pages/homepage/instance'
9 return this.getRequestBody<CustomPage>({
14 defaultExpectedStatus: HttpStatusCode.OK_200
18 updateInstanceHomepage (options: OverrideCommandOptions & {
21 const { content } = options
22 const path = '/api/v1/custom-pages/homepage/instance'
24 return this.putBodyRequest({
30 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204