Add scripts to create myops-getqueryview:
[myops.git] / web / query / shows / post.js
diff --git a/web/query/shows/post.js b/web/query/shows/post.js
new file mode 100644 (file)
index 0000000..f00bc23
--- /dev/null
@@ -0,0 +1,5 @@
+function(doc, req) {  
+  var path = require("vendor/couchapp/lib/path").init(req);
+  var redirect = require("vendor/couchapp/lib/redirect");
+  return redirect.permanent(path.list('post','post-page', {startkey : [doc._id]}));
+}
\ No newline at end of file