mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
24 lines
No EOL
630 B
JavaScript
24 lines
No EOL
630 B
JavaScript
var _ = require('lodash'),
|
|
api = require('../api'),
|
|
helpers = require('../helpers'),
|
|
filters = require('../filters');
|
|
|
|
var proxy = {
|
|
|
|
filters: {
|
|
register: filters.registerFilter,
|
|
unregister: filters.unregisterFilter
|
|
},
|
|
helpers: {
|
|
register: helpers.registerThemeHelper,
|
|
registerAsync: helpers.registerAsyncThemeHelper
|
|
},
|
|
api: {
|
|
posts: _.pick(api.posts, 'browse', 'read'),
|
|
tags: api.tags,
|
|
notifications: _.pick(api.notifications, 'add'),
|
|
settings: _.pick(api.settings, 'read')
|
|
}
|
|
};
|
|
|
|
module.exports = proxy; |