daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest May 31st, 2015 226 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Ember from 'ember';
  2. import config from './config/environment';
  3.  
  4. var Router = Ember.Router.extend({
  5.         location: config.locationType
  6. });
  7.  
  8. Router.map(function() {
  9.         this.route('enquiry', { path: '/enquiry'},
  10.                 function() {
  11.                         this.route('create');
  12.                         this.route('list');
  13.                         this.route('detail',{ path: '/detail/:enquiry_id' });
  14.                 }
  15.                 );
  16.         this.route('jobsheet', { path: '/jobsheet'},
  17.                 function() {
  18.                         this.route('create');  
  19.                         this.route('list');    
  20.                         this.route('detail',{ path: '/detail/:jobsheet_id' },
  21.                                 function() {
  22.                                         this.route('workorderitem', { path: '/workorderitem'},
  23.                                                 function() {   
  24.                                                         this.route('create');
  25.                                                 }
  26.                                                 );
  27.                                 }
  28.                                 );
  29.                 }
  30.                 );
  31.         this.route('workorderitem');
  32.         this.route('client');
  33.         this.route('task', { path: '/task'},
  34.                 function() {
  35.                         this.route('create');  
  36.                         this.route('list');    
  37.                         this.route('detail',{ path: '/detail/:task_id' });
  38.                 }
  39.                 );
  40. });
  41.  
  42. export default Router;
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. OK, I Understand
 
Top