mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
ed6455f5a4
- proxy doesn't need a ghost object :)
24 lines
634 B
JavaScript
24 lines
634 B
JavaScript
var _ = require('underscore'),
|
|
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; |