2013-11-27 21:45:01 -05:00
|
|
|
var _ = require('underscore'),
|
|
|
|
helpers = require('../helpers'),
|
|
|
|
filters = require('../filters');
|
2013-11-14 20:17:33 -06:00
|
|
|
|
|
|
|
function createProxy(ghost) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
filters: {
|
2013-11-27 21:45:01 -05:00
|
|
|
register: filters.registerFilter,
|
|
|
|
unregister: filters.unregisterFilter
|
2013-11-14 20:17:33 -06:00
|
|
|
},
|
|
|
|
helpers: {
|
2013-11-27 21:45:01 -05:00
|
|
|
register: helpers.registerThemeHelper,
|
|
|
|
registerAsync: helpers.registerAsyncThemeHelper
|
2013-11-14 20:17:33 -06:00
|
|
|
},
|
|
|
|
api: {
|
|
|
|
posts: _.pick(ghost.api.posts, 'browse', 'read'),
|
|
|
|
tags: ghost.api.tags,
|
|
|
|
notifications: _.pick(ghost.api.notifications, 'add'),
|
|
|
|
settings: _.pick(ghost.api.settings, 'read')
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = createProxy;
|