Added the endpoint for creating new pages (/createNew/<pagename>)