path in api made consistent with url route in flask