diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-15 14:48:18 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-15 14:48:18 -0400 |
commit | 899abe1ef771fc5658063996c5413a83a0a6b3ce (patch) | |
tree | f04d9abaac59c3a97a33a25ea79604cf85486f11 | |
parent | 48b36c77bed8f07ee170aa97450ba19b5986fb47 (diff) | |
download | patchfoo-899abe1ef771fc5658063996c5413a83a0a6b3ce.tar.gz patchfoo-899abe1ef771fc5658063996c5413a83a0a6b3ce.zip |
we can take logbook channel name as parameter now
-rw-r--r-- | lib/serve.js | 4 |
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, |