int work and icon on header

This commit is contained in:
Adolfo Reyna
2023-01-08 20:42:09 -05:00
parent c725eda32f
commit caf2a8ee04
6 changed files with 55 additions and 27 deletions

3
API.js
View File

@@ -270,6 +270,9 @@ const API = {
getCourses() {
return getCall("/user/courses");
},
getRecentCourses() {
return getCall("/posts/course/recent");
},
searchCourses(query){
return getCall("/user/groups/search", query ? {query, courses: true} : {courses: true}).then((data)=>{
if(data.status == "ok"){