Initial commit

This commit is contained in:
2024-05-27 00:06:53 +03:00
commit 2dfd0c1dcc
209 changed files with 25698 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { config } from 'shared/configs'
import { baseRequest, IContentfulResponse } from 'shared/lib'
import { IHolidays } from 'shared/store/holidays/IHolidays'
import { ISchedule } from 'shared/store/schedule/ISchedule'
interface IScheduleResponse {
schedule: ISchedule
holidays: { data: IHolidays }
}
export type FetchScheduleResponse = IContentfulResponse<IScheduleResponse>
export const fetchSchedule = (): Promise<FetchScheduleResponse> => {
return baseRequest<FetchScheduleResponse>(
`https://cdn.contentful.com/spaces/ze9lyxygmq5z/environments/master/entries/43nolroEBc5PNSMub6VR8G?access_token=${config.CONTENTFUL_TOKEN}`,
)
}