Changed the setRoutes function to addRoutes; removed the two ApiCore functions that were being called by the parent constructor

Signed-off-by: license2e <ilya@shindyapin.com>