Skip to content

Commit 71a96a0

Browse files
committed
removed forward slashes from tutorials
1 parent e6127c6 commit 71a96a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/2011-01-27-what-is-a-router.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Most conventional frameworks allow you to define routes that contain a mix of st
5050
<script>
5151
var AppRouter = Backbone.Router.extend({
5252
routes: {
53-
"/posts/:id": "getPost",
53+
"posts/:id": "getPost",
5454
"*actions": "defaultRoute" // Backbone will try match the route above first
5555
}
5656
});
@@ -88,13 +88,13 @@ Here are some examples of using ":params" and "*splats"
8888

8989
routes: {
9090
91-
"/posts/:id": "getPost",
91+
"posts/:id": "getPost",
9292
// <a href="http://example.com/#/posts/121">Example</a>
9393
94-
"/download/*path": "downloadFile",
94+
"download/*path": "downloadFile",
9595
// <a href="http://example.com/#/download/user/images/hey.gif">Download</a>
9696
97-
"/:route/:action": "loadView",
97+
":route/:action": "loadView",
9898
// <a href="http://example.com/#/dashboard/graph">Load Route/Action View</a>
9999
100100
},

0 commit comments

Comments
 (0)