Reorganize ajax routes