From 899abe1ef771fc5658063996c5413a83a0a6b3ce Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 15 Jul 2021 14:48:18 -0400 Subject: we can take logbook channel name as parameter now --- lib/serve.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3