package com.tymiller.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/photo")
public class PhotoController {

	@Autowired
	private PhotoService photoService;
	
	@RequestMapping("/allPhotos")
	public List<Photo> getAllPhotos() {
		return photoService.findAll();
	}
}

@@ -27,16 +27,103 @@
 oller;%0A%0A
+import java.util.List;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A
 import o
@@ -241,16 +241,92 @@
 oller;%0A%0A
+import com.tymiller.model.Photo;%0Aimport com.tymiller.service.PhotoService;%0A%0A
 @RestCon

fix imports