filter by learning_types and course_thematics
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user