summaryrefslogtreecommitdiff
path: root/public/js/lib/views
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/lib/views')
-rw-r--r--public/js/lib/views/index.js22
-rw-r--r--public/js/lib/views/lobby/index.js9
-rw-r--r--public/js/lib/views/room/index.js9
3 files changed, 40 insertions, 0 deletions
diff --git a/public/js/lib/views/index.js b/public/js/lib/views/index.js
new file mode 100644
index 0000000..d96bffb
--- /dev/null
+++ b/public/js/lib/views/index.js
@@ -0,0 +1,22 @@
+var SiteRouter = Router.extend({
+ el: "body",
+
+ events: {
+ },
+
+ routes: {
+ "/": 'lobby',
+ "/v/:name": 'room',
+ },
+
+ initialize: function(){
+ this.route()
+ },
+
+ lobby: function(){
+ },
+
+ room: function(name){
+ },
+
+}) \ No newline at end of file
diff --git a/public/js/lib/views/lobby/index.js b/public/js/lib/views/lobby/index.js
new file mode 100644
index 0000000..5ed1966
--- /dev/null
+++ b/public/js/lib/views/lobby/index.js
@@ -0,0 +1,9 @@
+var LobbyView = View.extend({
+
+ events: {
+ },
+
+ initialize: function(){
+ }
+
+}) \ No newline at end of file
diff --git a/public/js/lib/views/room/index.js b/public/js/lib/views/room/index.js
new file mode 100644
index 0000000..b266e29
--- /dev/null
+++ b/public/js/lib/views/room/index.js
@@ -0,0 +1,9 @@
+var RoomView = View.extend({
+
+ events: {
+ },
+
+ initialize: function(){
+ }
+
+}) \ No newline at end of file