Adds CRUD actions to Posts controller