add posts resource and index / show actions to controller