Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 52b68b3

Browse files
committed
Changed auth for listings
1 parent f07fe6d commit 52b68b3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/listings/listings.routes.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ import angular from 'angular'
2222
parent: 'root',
2323
url: '/listings/',
2424
template: require('./listings')(),
25-
controller: 'ListingsCtrl as vm'
25+
controller: 'ListingsCtrl as vm',
26+
resolve: {
27+
userHandle: ['$stateParams', function($stateParams) {
28+
return $stateParams.userHandle
29+
}]
30+
},
31+
data: {
32+
authRequired: false,
33+
title: 'Listings'
34+
}
2635
}
2736
}
2837

0 commit comments

Comments
 (0)