summaryrefslogtreecommitdiff
path: root/paths.js
diff options
context:
space:
mode:
Diffstat (limited to 'paths.js')
-rw-r--r--paths.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/paths.js b/paths.js
index a955b16..f772478 100644
--- a/paths.js
+++ b/paths.js
@@ -1,4 +1,5 @@
const Router = require('koa-router');
+const kbu = require('./pieces/kbutils.js');
// Prefix all routes with: /items
const router = new Router({
@@ -42,7 +43,7 @@ router.get('/search', (ctx, next) => {
});
router.get('/search/:title', (ctx, next) => {
- let words = ctx.params.title.split(' ');
+ let words = kbu.keybutil.keyboardize(ctx.params.title).split(' ');
ctx.body = {
params: ctx.params,
results: words