2013-11-27 21:45:01 -05:00
|
|
|
var _ = require('underscore'),
|
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: {
|
|
|
|
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')
|
|
|
|
}
|
|
|
|
};
|
2013-11-14 21:17:33 -05:00
|
|
|
|
2013-11-29 11:26:56 -05:00
|
|
|
module.exports = proxy;
|