1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00
VILLASweb/app/router.js
Markus Grigull 403351d12b Added property route
The list of properties of an entity is clickable and redirects
to the detailed view of the property (not programmed yet).
The routes have changed (renamed lab-mashup to entities).

The layout has changed and is work in progress.

The data model has changed. Properties have an own model and
are connected via relationships to the entity model.
2015-10-07 15:09:26 +02:00

16 lines
391 B
JavaScript

import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('entities', { path: '/' }, function() {
this.route('entity', { path: '/:entity_id' }, function() {
this.route('property', { path: '/:property_id'});
});
});
});
export default Router;