Added seperate api controller
changed routes