- Introduced new endpoints for managing instruction intros and tabs, allowing admins to create, update, and delete instructional content. - Enhanced the FactoryResetCommandHandler to include the seeding of instruction data during a factory reset. - Updated the database schema to include InstructionIntro and InstructionTab entities, with corresponding migrations. - Improved frontend routing and components to support the new instructions section, including a dedicated page for displaying instructions and tabs. - Enhanced API documentation to reflect the new instruction management features and their expected request/response formats. - Added localization support for the new instructions functionality in both Russian and English.
11 lines
343 B
TypeScript
11 lines
343 B
TypeScript
import { apiRequest } from '@/shared/api/client'
|
|
import type { InstructionIntroDto, InstructionTabDto } from '@/shared/api/types'
|
|
|
|
export function getInstructionIntro() {
|
|
return apiRequest<InstructionIntroDto>('/instructions/intro')
|
|
}
|
|
|
|
export function listInstructionTabs() {
|
|
return apiRequest<InstructionTabDto[]>('/instructions/tabs')
|
|
}
|