fixed bug in api/search causing it to crash if term is not passed in via ajaxify, see #1195

v1.18.x
psychobunny 11 years ago
parent 941c3b2d7e
commit 6e64712fd3

@ -30,7 +30,7 @@ function mainRoutes(app, middleware, controllers) {
app.get('/api/outgoing', controllers.outgoing);
app.get('/search/:term?', middleware.buildHeader, middleware.guestSearchingAllowed, controllers.search);
app.get('/api/search/:term', middleware.guestSearchingAllowed, controllers.search);
app.get('/api/search/:term?', middleware.guestSearchingAllowed, controllers.search);
app.get('/reset/:code?', middleware.buildHeader, controllers.reset);
app.get('/api/reset/:code?', controllers.reset);

Loading…
Cancel
Save