move all JSon Endpoints to Api-Controller. Remove dashboard() API