Reverted changes and added paths array endpoint