mirror of
https://codeberg.org/scip/digiproof.git
synced 2025-12-17 04:30:59 +01:00
50 lines
935 B
JavaScript
50 lines
935 B
JavaScript
|
|
|
||
|
|
App.Router.map(function() {
|
||
|
|
this.resource('assets', function() {
|
||
|
|
this.route('asset', { path: ':asset_id' });
|
||
|
|
this.route('new');
|
||
|
|
});
|
||
|
|
|
||
|
|
this.resource('successors', function() {
|
||
|
|
this.route('successor', { path: ':successor_id' });
|
||
|
|
this.route('new');
|
||
|
|
});
|
||
|
|
|
||
|
|
this.route('self');
|
||
|
|
|
||
|
|
this.route('testament');
|
||
|
|
|
||
|
|
this.route('about');
|
||
|
|
|
||
|
|
this.resource('data', function() {
|
||
|
|
this.route('export');
|
||
|
|
this.route('import');
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
App.AssetsRoute = Ember.Route.extend({
|
||
|
|
model: function() {
|
||
|
|
return App.Asset.find();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
App.SelfRoute = Ember.Route.extend({
|
||
|
|
setupController: function(controller) {
|
||
|
|
controller.set('model', App.Self.find(0));
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
App.DataImportRoute = Ember.Route.extend({
|
||
|
|
setupController: function(controller) {
|
||
|
|
controller.set('model', App.Import.find(0));
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
App.SuccessorsRoute = Ember.Route.extend({
|
||
|
|
model: function() {
|
||
|
|
return App.Successor.find();
|
||
|
|
}
|
||
|
|
});
|