package com.qmth.qrzk.web.controller;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.qmth.qrzk.dao.repositories.CourseRepo;
import com.qmth.qrzk.supplypaper.model.Course;

@RestController
@RequestMapping("course")
public class CourseController {

	@Autowired private CourseRepo courseRepo;
	
	@RequestMapping
	public Collection<Course> index(){
		return courseRepo.findAll();
	}
}
