Files
PyRIGS/app/router.js
2016-08-09 18:26:16 +01:00

27 lines
513 B
JavaScript

import Ember from "ember";
import config from "./config/environment";
const Router = Ember.Router.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function () {
this.route('event', function () {
this.route('create');
this.route('show', {
path: ':id'
});
this.route('duplicate', {
path: ':id/duplicate'
});
this.route('edit', {
path: ':id/edit'
});
});
this.route('legacy', {path: '/*wildcard'});
});
export default Router;