Add scripts to create myops-getqueryview:
[myops.git] / web / query / vendor / couchapp / lib / redirect.js
diff --git a/web/query/vendor/couchapp/lib/redirect.js b/web/query/vendor/couchapp/lib/redirect.js
new file mode 100644 (file)
index 0000000..92ce060
--- /dev/null
@@ -0,0 +1,8 @@
+exports.permanent = function(redirect) {
+  return {
+    code : 301,
+    headers : {
+      "Location" : redirect
+    }
+  };
+};
\ No newline at end of file