frontend/src/common/api.js
/** Fetches the API to get information about the setup of a given course */
Fetches the API to get information about the setup of a given course
Fetches the API to get information about the setup of a given course
function useCourseSetup(courseId) {
  return useQuery(["course", courseId, "setup"], () =>
    apiClient(`courses/${courseId}/setup`)
  );
}
function useCourseSetup ( courseId ) { return useQuery ( [ "course" , courseId , "setup" ] , ( ) => apiClient ( ` ${ courseId } ` ) ) ; }
Fetches the API to get information about the setup of a given course
Fetches the API to get information about the setup of a given course