adds posts routes and index and show actions to Posts controller