{I" class:ETI"ProcessedAsset;FI"logical_path;TI"sprangular/routes.js;FI" pathname;TI"Z/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/routes.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+9W%UI" length;TiÓ I" digest;TI"%a9ae3d3041cabbb819f389500416f485;FI" source;TI"Ó (function() { Sprangular.config(function($routeProvider) { return $routeProvider.when('/', { controller: 'HomeCtrl', templateUrl: 'home/index.html', resolve: { products: function(Catalog) { return Catalog.products(); } } }).when('/account', { requires: { user: true }, controller: 'AccountCtrl', templateUrl: 'account/show.html', resolve: { user: function(Account) { return Account.reload().then(function() { return Account.user; }); } } }).when('/products', { controller: 'ProductListCtrl', templateUrl: 'products/index.html', resolve: { taxon: function() { return null; }, products: function(Catalog, $route) { return Catalog.products($route.current.params.search, 1); } } }).when('/products/:id', { controller: 'ProductCtrl', templateUrl: 'products/show.html', resolve: { product: function(Status, Catalog, $route) { var slug; slug = $route.current.params.id; return Status.findCachedProduct(slug) || Catalog.find(slug); } } }).when('/t/:path*', { controller: 'ProductListCtrl', templateUrl: 'products/index.html', resolve: { taxon: function(Catalog, $route) { return Catalog.taxon($route.current.params.path); }, products: function(Catalog, $route) { return Catalog.productsByTaxon($route.current.params.path); } } }).when('/sign-in', { requires: { anonymous: true }, controller: 'SigninCtrl', templateUrl: 'account/signin.html' }).when('/sign-up', { requires: { anonymous: true }, controller: 'SignupCtrl', templateUrl: 'account/signup.html' }).when('/forgot-password', { requires: { anonymous: true }, controller: 'ForgotPasswordCtrl', templateUrl: 'account/forgot_password.html' }).when('/reset-password/:token', { requires: { anonymous: true }, controller: 'ResetPasswordCtrl', templateUrl: 'account/reset_password.html' }).when('/checkout', { requires: { guest: true, cart: true }, controller: 'CheckoutCtrl', templateUrl: 'checkout/index.html', resolve: { countries: function(Geography) { return Geography.getCountryList(); }, order: function(Cart) { return Cart.reload().then(function() { return Cart.current; }); } } }).when('/checkout/complete', { controller: 'CheckoutCompleteCtrl', templateUrl: 'checkout/complete.html', resolve: { order: function(Cart) { return Cart.lastOrder; } } }).when('/orders/:number', { requires: { user: true }, controller: 'OrderDetailCtrl', templateUrl: 'orders/show.html', resolve: { order: function(Orders, $route) { return Orders.find($route.current.params.number); } } }).otherwise({ templateUrl: '404.html' }); }); }).call(this); ;TI"dependency_digest;TI"%b303bdc6ea8628b24af9a3a80dcaa3a0;FI"required_paths;T[I"Z/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/routes.coffee;FI"dependency_paths;T[{I" path;TI"Z/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/routes.coffee;FI" mtime;TI"2015-04-08T12:28:41-04:00;TI" digest;TI"%33c65b81f569595a3ea07b5a25bde35c;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F