2013-11-28 06:45:01 +04:00
|
|
|
var _ = require('underscore'),
|
2013-11-29 20:26:56 +04:00
|
|
|
api = require('../api'),
|
2013-11-28 06:45:01 +04:00
|
|
|
helpers = require('../helpers'),
|
|
|
|
filters = require('../filters');
|
2013-11-15 06:17:33 +04:00
|
|
|
|
2013-11-29 20:26:56 +04:00
|
|
|
var proxy = {
|
2013-11-15 06:17:33 +04:00
|
|
|
|
2013-11-29 20:26:56 +04: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-15 06:17:33 +04:00
|
|
|
|
2013-11-29 20:26:56 +04:00
|
|
|
module.exports = proxy;
|