Permalink
Browse files

keeping relative urls sane

  • Loading branch information...
1 parent e68a63b commit 925472b2d737c2357e237ace8286e139884a64d4 Richard Metzler committed with quirkey Oct 29, 2010
Showing with 16 additions and 2 deletions.
  1. +8 −1 lib/soca/templates/rewrites.js.erb
  2. +8 −1 test/testapp/rewrites.js
@@ -1,8 +1,15 @@
+/**
+ * this file contains the json representation for rewrite rules
+**/
[
- {
+ { // rewriting / to index.html
"from":"/",
"to":"index.html",
"method":"GET",
"query":{}
+ },
+ { // keeping relative urls sane
+ "from":"/*",
+ "to":"/*"
}
]
View
@@ -1,8 +1,15 @@
+/**
+ * this file contains the json representation for rewrite rules
+**/
[
- {
+ { // rewriting / to index.html
"from":"/",
"to":"index.html",
"method":"GET",
"query":{}
+ },
+ { // keeping relative urls sane
+ "from":"/*",
+ "to":"/*"
}
]

0 comments on commit 925472b

Please sign in to comment.