2014-02-05 03:40:30 -05:00
|
|
|
var _ = require('lodash'),
|
2013-11-29 11:26:56 -05:00
|
|
|
api = require('../api'),
|
2013-11-27 21:45:01 -05:00
|
|
|
helpers = require('../helpers'),
|
|
|
|
filters = require('../filters');
|
2013-11-14 21:17:33 -05:00
|
|
|
|
2013-11-29 11:26:56 -05:00
|
|
|
var proxy = {
|
2013-11-14 21:17:33 -05:00
|
|
|
|
2013-11-29 11:26:56 -05:00
|
|
|
filters: {
|
2014-02-09 18:17:28 -05:00
|
|
|
register: filters.registerFilter.bind(filters),
|
2014-02-10 07:44:07 -05:00
|
|
|
deregister: filters.deregisterFilter.bind(filters)
|
2013-11-29 11:26:56 -05:00
|
|
|
},
|
|
|
|
helpers: {
|
2014-02-09 18:17:28 -05:00
|
|
|
register: helpers.registerThemeHelper.bind(helpers),
|
|
|
|
registerAsync: helpers.registerAsyncThemeHelper.bind(helpers)
|
2013-11-29 11:26:56 -05:00
|
|
|
},
|
|
|
|
api: {
|
|
|
|
posts: _.pick(api.posts, 'browse', 'read'),
|
|
|
|
tags: api.tags,
|
|
|
|
notifications: _.pick(api.notifications, 'add'),
|
|
|
|
settings: _.pick(api.settings, 'read')
|
|
|
|
}
|
|
|
|
};
|
2013-11-14 21:17:33 -05:00
|
|
|
|
2014-02-09 18:17:28 -05:00
|
|
|
module.exports = proxy;
|