created posts index and associated routes