added method to post controller
Merge branch 'develop' of github.com:liampcollins/project2 into develop