summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/router.js')
-rw-r--r--public/assets/js/lib/router.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/assets/js/lib/router.js b/public/assets/js/lib/router.js
index 9ac6336..b6eff73 100644
--- a/public/assets/js/lib/router.js
+++ b/public/assets/js/lib/router.js
@@ -25,6 +25,7 @@ var SiteRouter = Router.extend({
"/profile": 'profile',
"/profile/:username": 'profile',
"/profile/:username/edit": 'editProfile',
+ "/adminz": 'adminz',
},
initialize: function(){
@@ -103,6 +104,11 @@ var SiteRouter = Router.extend({
app.view = new SearchResults ()
app.view.load()
},
+
+ adminz: function(){
+ app.view = new AdminView ()
+ app.view.load()
+ },
error404: function(){
$("content").hide()