w7cook/OpenBook — pull request #10 by ProCynic (2012-02-27 03:26:15+00:00)
Title: Added basic photo capability.

New routes:
GET	/photos	#view all photos
POST	/photos	#add a photo with logged in user as owner
GET	/photos/id	#view a specific photo
DELETE	/photos/id	#delete a photo
GET	/users/id/photos #get all photos for a specific user

New model Photo.java has image blob and User owner.

New view template photos.html. Basic skeleton, needs work.

New Application.java methods:
photos(Long id)	//view all photos, or all photos by a specific user
getPhoto(Long id)	//render a specific photo
addPhoto(Photo photo) // add a photo with the logged in user as owner
removePhoto(Long id) // delete a photo