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

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