async fn update_course(
    payload: Json<CourseUpdate>,
    course_id: Path<Uuid>,
    pool: Data<PgPool>,
    user: AuthUser
) -> ControllerResult<Json<Course>>
Expand description

POST /api/v0/main-frontend/courses/:course_id - Update course.

Example

Request:

PUT /api/v0/main-frontend/courses/ab4541d8-6db4-4561-bdb2-45f35b2544a1 HTTP/1.1
Content-Type: application/json

{
  "name": "Introduction to Introduction"
}