mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
7155d95f9d
first 10 % of #2124 - added initial version of JSON API tests - renamed error.errorCode to error.code - renamed tags.all to tags.browse for consistency
25 lines
705 B
JavaScript
25 lines
705 B
JavaScript
var _ = require('lodash'),
|
|
api = require('../api'),
|
|
helpers = require('../helpers'),
|
|
filters = require('../filters');
|
|
|
|
var proxy = {
|
|
|
|
filters: {
|
|
register: filters.registerFilter.bind(filters),
|
|
deregister: filters.deregisterFilter.bind(filters)
|
|
},
|
|
helpers: {
|
|
register: helpers.registerThemeHelper.bind(helpers),
|
|
registerAsync: helpers.registerAsyncThemeHelper.bind(helpers)
|
|
},
|
|
api: {
|
|
posts: _.pick(api.posts, 'browse', 'read'),
|
|
tags: _.pick(api.tags, 'browse'),
|
|
notifications: _.pick(api.notifications, 'add'),
|
|
settings: _.pick(api.settings, 'read')
|
|
}
|
|
};
|
|
|
|
module.exports = proxy;
|