Routes index and write pages.