# For more information see: http://emberjs.com/guides/routing/
# and for queryParams: https://github.com/alexspeller/website/blob/a96d9afe4506454b155cc64299e86e558ce3c9f1/source/guides/routing/query-params.md
App.Router.reopen
  # location: 'history'
  rootURL: '/supplier'

App.Router.map ->
  @route '/', queryParams: ['section_id']
  @resource 'sections', ->
    @resource 'section', path: ':section_id'
  @resource 'tables', ->
    @resource 'table', path: ':table_id'
  @resource 'lists', ->
    @resource 'list', path: ':list_id'
  @route 'employees'
  @route 'employee', path: '/employees/:employee_id'
  @resource 'page', path: 'pages/:page_id'
  @route 'orders-display' # chromecast etc
  @route 'menu'
  @route 'settings'
  @route 'schedule'
  @route 'my-account'
  @route 'my-schedule'
  @route 'empty'
  #@resource 'lists', queryParams: ['state']
