added 2 routes with endpoints: editor and posts