Add api/courses handler