mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
27 lines
513 B
JavaScript
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;
|