Added endpoints
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package com.plannaplan.services;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.plannaplan.entities.Course;
|
||||
import com.plannaplan.repositories.CourseRepository;
|
||||
|
||||
@ -15,6 +17,10 @@ public class CourseService {
|
||||
return this.repo.findByName(name);
|
||||
}
|
||||
|
||||
public List<Course> getAllCourses() {
|
||||
return this.repo.findAll();
|
||||
}
|
||||
|
||||
public void save(Course course) {
|
||||
this.repo.save(course);
|
||||
}
|
||||
|
Reference in New Issue
Block a user