mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
9 lines
No EOL
302 B
JavaScript
9 lines
No EOL
302 B
JavaScript
import { servePostsApi } from './api.js';
|
|
|
|
// 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(servePostsApi(params.query));
|
|
}); |