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