filter by learning_types and course_thematics

This commit is contained in:
Aleksandr Trushkin
2024-01-10 00:02:40 +03:00
parent 728c8fa59e
commit 5fd0861e2d
10 changed files with 346 additions and 22 deletions

View File

@ -50,9 +50,9 @@ func parseListCoursesParams(r *http.Request) (out listCoursesParams, err error)
return out, err
}
query := r.URL.Query()
out.learningType = query.Get("category")
out.courseThematic = query.Get("type")
vars := mux.Vars(r)
out.learningType = vars["learning_type"]
out.courseThematic = vars["thematic_type"]
return out, nil
}