Help with dynamic domain and subdomain routing going to wrong controller


#1

I have a route which can take both :subdomain & :domain, problem is when I het the subdomain url ie: sub.domain.com the index controller loads and once the index controller loads then it calls the channel controller: The syntax currently is this


// Identify User
Route.group(() => {

// Home Page
Route.get('/', 'VideoController.index')
Route.get(':channel.:url', 'VideoController.channel')

}).middleware([‘identify’]);