summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/router.js
blob: 5bc05c34906a54912f10782039e535eb5e5368f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var lobby, room

var SiteRouter = Router.extend({

	el: "body",
	
	routes: {
		"/":            'login',
		"/index":       'index',
		"/login":       'login',
		"/details/:id": 'room',
	},
	
	initialize: function(){
    this.route()
  },
  
  index: function(){
    app.view = new IndexView ()
  },
  
  login: function(){
    app.view = new LoginView ()
  },

})