mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
7 lines
No EOL
254 B
JavaScript
7 lines
No EOL
254 B
JavaScript
// 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));
|
|
}); |