Skip to main content

courses.SectionController

Defined in: backend/src/modules/courses/controllers/SectionController.ts:43

Constructors

Constructor

new SectionController(courseRepo, itemRepo, sectionService): SectionController

Defined in: backend/src/modules/courses/controllers/SectionController.ts:44

Parameters

courseRepo

CourseRepository

itemRepo

ItemRepository

sectionService

SectionService

Returns

SectionController

Methods

create()

create(params, body): Promise<CourseVersion>

Defined in: backend/src/modules/courses/controllers/SectionController.ts:77

Parameters

params

CreateSectionParams

body

CreateSectionBody

Returns

Promise<CourseVersion>


delete()

delete(params): Promise<SectionDeletedResponse>

Defined in: backend/src/modules/courses/controllers/SectionController.ts:212

Parameters

params

DeleteSectionParams

Returns

Promise<SectionDeletedResponse>


move()

move(params, body): Promise<CourseVersion>

Defined in: backend/src/modules/courses/controllers/SectionController.ts:160

Parameters

params

MoveSectionParams

body

MoveSectionBody

Returns

Promise<CourseVersion>


update()

update(params, body): Promise<CourseVersion>

Defined in: backend/src/modules/courses/controllers/SectionController.ts:117

Parameters

params

UpdateSectionParams

body

UpdateSectionBody

Returns

Promise<CourseVersion>