mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat(backend): init course metadata service
This commit is contained in:
parent
fba161b55d
commit
a8bad0427b
3 changed files with 84 additions and 2 deletions
|
|
@ -17,6 +17,8 @@ const CourseIdPage = () => {
|
|||
const course = await getCourse("course_" + courseid);
|
||||
|
||||
setCourseInfo(course);
|
||||
|
||||
|
||||
console.log("courseinfo" , courseInfo);
|
||||
|
||||
setIsLoading(false);
|
||||
|
|
@ -37,6 +39,7 @@ const CourseIdPage = () => {
|
|||
) : (
|
||||
<div>
|
||||
<br></br>
|
||||
<p>Course</p>
|
||||
<h1>{courseInfo.name}</h1>
|
||||
<CourseWrapper>
|
||||
<img src={`${getBackendUrl()}content/uploads/img/${courseInfo.thumbnail}`} alt="" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue