aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index bebe3c7..087a45f 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -544,6 +544,7 @@ Serve.prototype.path = function (url) {
m = /^(\/?[^\/]*)(\/.*)?$/.exec(url)
switch (m[1]) {
case '/channel': return this.channel(m[2])
+ case '/logbookchannel': return this.logbook2(m[2])
case '/type': return this.type(m[2])
case '/links': return this.links(m[2])
case '/static': return this.static(m[2])
@@ -582,7 +583,8 @@ Serve.prototype.home = function () {
)
}
-Serve.prototype.logbook2 = function (ext) {
+Serve.prototype.logbook2 = function (path) {
+ var channelAndTag = path && decodeURIComponent(String(path).substr(1)) || "logbook"
var q = this.query
var opts = {
reverse: !q.forwards,