Turns out there is a setRoutes() method :)
Ext.define('APP.controller.AppController',{
extend: 'Ext.app.Controller',
alias: 'appcontroller',
config : {
routes : {
'page' : {
action: 'showPage'
}
},
init: function() {
// Adding the routes
this.setRoutes({
'page' : {
action: 'showPage'
},
'new-page' : {
action: 'showNewPage'
}
});
},
showPage: function(){
},
showNewPage: function(){
}
});