File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Most conventional frameworks allow you to define routes that contain a mix of st
50
50
<script >
51
51
var AppRouter = Backbone .Router .extend ({
52
52
routes: {
53
- " / posts/:id" : " getPost" ,
53
+ " posts/:id" : " getPost" ,
54
54
" *actions" : " defaultRoute" // Backbone will try match the route above first
55
55
}
56
56
});
@@ -88,13 +88,13 @@ Here are some examples of using ":params" and "*splats"
88
88
89
89
routes: {
90
90
91
- "/ posts/:id": "getPost",
91
+ "posts/:id": "getPost",
92
92
// <a href="http://example.com/#/posts/121">Example</a>
93
93
94
- "/ download/*path": "downloadFile",
94
+ "download/*path": "downloadFile",
95
95
// <a href="http://example.com/#/download/user/images/hey.gif">Download</a>
96
96
97
- "/ :route/:action": "loadView",
97
+ ":route/:action": "loadView",
98
98
// <a href="http://example.com/#/dashboard/graph">Load Route/Action View</a>
99
99
100
100
},
You can’t perform that action at this time.
0 commit comments