route to /posts and make the required files