mbland / custom-links

An application for allowing authenticated users to create and dereference custom URLs hosted on a custom domain.
ISC License
7 stars 1 forks source link

API: Add /autocomplete endpoint #184

Closed mbland closed 6 years ago

mbland commented 6 years ago

Part of #160. This is more or less a straight passthrough to LinkDb.completeLink(), which passes through to RedisClient.completeLink().

Also moved the /api/search test to be part of the API block, and tweaked the error path in that API endpoint to avoid emitting Cannot read property 'then' of undefined output, as in:

https://travis-ci.org/mbland/custom-links/jobs/371712950

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.02%) to 98.232% when pulling 383f7b43d87d20726cb1754e7d301215a2d644ef on autocomplete-api into 126a07696874c3d659654220595e03b5d075feb7 on master.