aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/router.js
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2018-10-02 13:17:04 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2018-10-02 13:17:04 +0300
commitcf2c56c7061b7ed40fdd3b40a352ddb9c9b7371f (patch)
treeb1de9ada0f1b1cb064e3a9e0d4042d1f519085bd /javascript/app/router.js
Initial commit
Diffstat (limited to 'javascript/app/router.js')
-rw-r--r--javascript/app/router.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/javascript/app/router.js b/javascript/app/router.js
new file mode 100644
index 0000000..f58e9ab
--- /dev/null
+++ b/javascript/app/router.js
@@ -0,0 +1,20 @@
+import Ember from 'ember';
+import config from './config/environment';
+
+var Router = Ember.Router.extend({
+ location: config.locationType
+});
+
+Router.map(function() {
+ this.route('packages',{path:''});
+ this.route('package', {path:'/package/:packageId'}, function() {
+ this.route('show',function() {
+ this.route('file', {path:'*filePath'}, function() {
+ });
+ });
+ this.route('search',{path:'/search/:query'});
+ });
+ this.route('bad-url', { path: '/*badurl' });
+});
+
+export default Router;