diff --git a/app/router.js b/app/router.js index 8dbb54f..ebf7f24 100644 --- a/app/router.js +++ b/app/router.js @@ -37,8 +37,9 @@ Router.map(function () { this.route('developer', { path: 'developer/:developer_id' }, function () { this.route('home'); + this.route('profil'); }); - this.route('profil'); + }); export default Router; diff --git a/app/routes/application.js b/app/routes/application.js index 7b85ce6..f61436e 100644 --- a/app/routes/application.js +++ b/app/routes/application.js @@ -24,7 +24,7 @@ export default Route.extend({ category: "Developers", title: developer.username, description: developer.fullName, - url: "/developer/" + developer.id + "/home" + url: "/developer/profil/" + developer.id }); }); let connected = (localStorage.getItem("connected") == "true"); diff --git a/app/routes/profil.js b/app/routes/developer/profil.js similarity index 53% rename from app/routes/profil.js rename to app/routes/developer/profil.js index 6c74252..06e0bc5 100644 --- a/app/routes/profil.js +++ b/app/routes/developer/profil.js @@ -1,4 +1,8 @@ import Route from '@ember/routing/route'; export default Route.extend({ + model() { + this.paramsFor("developer").developer_id; + } + }); diff --git a/app/templates/developer/profil.hbs b/app/templates/developer/profil.hbs new file mode 100644 index 0000000..5143c85 --- /dev/null +++ b/app/templates/developer/profil.hbs @@ -0,0 +1,73 @@ +{{outlet}} +