summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/index.js')
-rw-r--r--public/assets/js/lib/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/public/assets/js/lib/index.js b/public/assets/js/lib/index.js
new file mode 100644
index 0000000..af381c1
--- /dev/null
+++ b/public/assets/js/lib/index.js
@@ -0,0 +1,18 @@
+var SiteRouter = Router.extend({
+
+ el: "body",
+
+ routes: {
+ "/": 'login',
+ "/index": 'index',
+ },
+
+ initialize: function(){
+ this.route()
+ },
+
+ index: function(){
+ app.view = new IndexView ()
+ },
+
+}) \ No newline at end of file