mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
22 lines
603 B
JavaScript
22 lines
603 B
JavaScript
import Ember from 'ember';
|
|
import config from './config/environment';
|
|
|
|
var Router = Ember.Router.extend({
|
|
location: config.locationType
|
|
});
|
|
|
|
Router.map(function() {
|
|
this.route('lab-mashup', { path: '/' }, function() {
|
|
// dynamic routes
|
|
this.route('entity', { path: '/:entity_id' }, function() {
|
|
//this.route('category', { path: '/:category_id'});
|
|
this.route('property', { path: '/:property_id'});
|
|
});
|
|
|
|
// static routes
|
|
this.route('static1', { path: '/static1' });
|
|
this.route('static2', { path: '/static2' });
|
|
});
|
|
});
|
|
|
|
export default Router;
|