2015-09-18 11:12:53 +09:00
|
|
|
// for backwards compatibility's sake, accept a "limit" segment
|
|
|
|
Picker.route('/api/:limit?', function(params, req, res, next) {
|
|
|
|
if (typeof params.limit !== "undefined") {
|
|
|
|
params.query.limit = params.limit;
|
|
|
|
}
|
|
|
|
res.end(serveAPI(params.query));
|
|
|
|
});
|