mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-20 15:02:31 +00:00
Convert event forms to be partially embery.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Ember from 'ember';
|
||||
import config from './config/environment';
|
||||
import Ember from "ember";
|
||||
import config from "./config/environment";
|
||||
|
||||
const Router = Ember.Router.extend({
|
||||
location: config.locationType,
|
||||
@@ -7,6 +7,20 @@ const Router = Ember.Router.extend({
|
||||
});
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user