- import Ember from 'ember';
- import config from './config/environment';
- var Router = Ember.Router.extend({
- location: config.locationType
- });
- Router.map(function() {
- this.route('enquiry', { path: '/enquiry'},
- function() {
- this.route('create');
- this.route('list');
- this.route('detail',{ path: '/detail/:enquiry_id' });
- }
- );
- this.route('jobsheet', { path: '/jobsheet'},
- function() {
- this.route('create');
- this.route('list');
- this.route('detail',{ path: '/detail/:jobsheet_id' },
- function() {
- this.route('workorderitem', { path: '/workorderitem'},
- function() {
- this.route('create');
- }
- );
- }
- );
- }
- );
- this.route('workorderitem');
- this.route('client');
- this.route('task', { path: '/task'},
- function() {
- this.route('create');
- this.route('list');
- this.route('detail',{ path: '/detail/:task_id' });
- }
- );
- });
- export default Router;
SHARE
TWEET
Untitled
a guest
May 31st, 2015
226
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
