Route. addCollection method


#1

Hello I am using addCollection methode to add routes to a route resource, but my application keeps crashing when I run it. Can help me figure put where the problem is?

Route
    
    .resource('route', 'RouteController')

    .except(['show'])

    .middleware({

        'AccountWizzard': [ 'show']

    })

    .addCollection('settings', 'GET', (collection) => {

        collection.bindAction('RouteController.show')

    })