import FocusCore from 'focus-core';

// Dependencies.
import {router} from 'focus-core';

const MoviesRouter = router.extend({
    log: true,
    beforeRoute() {
        FocusCore.application.changeRoute('movies');
    },
    routes: {
        'movies(/:movieId)': 'movies'
    },
    movies(movieId) {

        console.log(`ROUTE: MOVIES ${movieId}`);
        const MovieDetailView = require('../views/movie/detail');
        this._pageContent(MovieDetailView);
    }
});

export default new MoviesRouter();

@@ -247,22 +247,17 @@
 ovies(/:
-movieI
+i
 d)': 'mo
@@ -284,20 +284,14 @@
 ies(
-movieI
+i
 d) %7B%0A
-%0A
     
@@ -327,14 +327,9 @@
 S $%7B
-movieI
+i
 d%7D%60)
@@ -437,16 +437,31 @@
 tailView
+, %7Bprops: %7Bid%7D%7D
 );%0A    %7D

add id in movie detail router