Create the posts controller