2019-08-09 17:11:24 +03:00
|
|
|
const shared = require('../shared');
|
|
|
|
const localUtils = require('./utils');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
get http() {
|
|
|
|
return shared.http;
|
|
|
|
},
|
|
|
|
|
|
|
|
get authentication() {
|
|
|
|
return shared.pipeline(require('./authentication'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get db() {
|
|
|
|
return shared.pipeline(require('./db'), localUtils);
|
|
|
|
},
|
|
|
|
|
2020-01-20 14:45:58 +03:00
|
|
|
get identities() {
|
|
|
|
return shared.pipeline(require('./identities'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-08-09 17:11:24 +03:00
|
|
|
get integrations() {
|
|
|
|
return shared.pipeline(require('./integrations'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
// @TODO: transform
|
|
|
|
get session() {
|
|
|
|
return require('./session');
|
|
|
|
},
|
|
|
|
|
|
|
|
get schedules() {
|
|
|
|
return shared.pipeline(require('./schedules'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get pages() {
|
|
|
|
return shared.pipeline(require('./pages'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get redirects() {
|
|
|
|
return shared.pipeline(require('./redirects'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get roles() {
|
|
|
|
return shared.pipeline(require('./roles'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get slugs() {
|
|
|
|
return shared.pipeline(require('./slugs'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get webhooks() {
|
|
|
|
return shared.pipeline(require('./webhooks'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get posts() {
|
|
|
|
return shared.pipeline(require('./posts'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get invites() {
|
|
|
|
return shared.pipeline(require('./invites'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get mail() {
|
|
|
|
return shared.pipeline(require('./mail'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get notifications() {
|
|
|
|
return shared.pipeline(require('./notifications'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get settings() {
|
|
|
|
return shared.pipeline(require('./settings'), localUtils);
|
|
|
|
},
|
|
|
|
|
2020-05-28 13:40:51 +03:00
|
|
|
get membersStripeConnect() {
|
|
|
|
return shared.pipeline(require('./membersStripeConnect'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-08-09 17:11:24 +03:00
|
|
|
get members() {
|
|
|
|
return shared.pipeline(require('./members'), localUtils);
|
|
|
|
},
|
|
|
|
|
2021-04-19 17:16:52 +03:00
|
|
|
get products() {
|
|
|
|
return shared.pipeline(require('./products'), localUtils);
|
|
|
|
},
|
|
|
|
|
2020-02-27 06:48:02 +03:00
|
|
|
get memberSigninUrls() {
|
|
|
|
return shared.pipeline(require('./memberSigninUrls.js'), localUtils);
|
|
|
|
},
|
|
|
|
|
2020-02-14 12:33:10 +03:00
|
|
|
get labels() {
|
|
|
|
return shared.pipeline(require('./labels'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-08-09 17:11:24 +03:00
|
|
|
get images() {
|
|
|
|
return shared.pipeline(require('./images'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get tags() {
|
|
|
|
return shared.pipeline(require('./tags'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get users() {
|
|
|
|
return shared.pipeline(require('./users'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get preview() {
|
|
|
|
return shared.pipeline(require('./preview'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get oembed() {
|
|
|
|
return shared.pipeline(require('./oembed'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get slack() {
|
|
|
|
return shared.pipeline(require('./slack'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get config() {
|
|
|
|
return shared.pipeline(require('./config'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get themes() {
|
|
|
|
return shared.pipeline(require('./themes'), localUtils);
|
|
|
|
},
|
|
|
|
|
|
|
|
get actions() {
|
|
|
|
return shared.pipeline(require('./actions'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-11-05 08:15:17 +03:00
|
|
|
get email_preview() {
|
|
|
|
return shared.pipeline(require('./email-preview'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-11-06 10:27:46 +03:00
|
|
|
get emails() {
|
|
|
|
return shared.pipeline(require('./email'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-08-09 17:11:24 +03:00
|
|
|
get site() {
|
|
|
|
return shared.pipeline(require('./site'), localUtils);
|
|
|
|
},
|
|
|
|
|
2020-10-16 20:02:58 +03:00
|
|
|
get snippets() {
|
|
|
|
return shared.pipeline(require('./snippets'), localUtils);
|
|
|
|
},
|
|
|
|
|
2019-08-09 17:11:24 +03:00
|
|
|
get serializers() {
|
|
|
|
return require('./utils/serializers');
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Content API Controllers
|
|
|
|
*
|
|
|
|
* @NOTE:
|
|
|
|
*
|
|
|
|
* Please create separate controllers for Content & Admin API. The goal is to expose `api.canary.content` and
|
|
|
|
* `api.canary.admin` soon. Need to figure out how serializers & validation works then.
|
|
|
|
*/
|
|
|
|
get pagesPublic() {
|
|
|
|
return shared.pipeline(require('./pages-public'), localUtils, 'content');
|
|
|
|
},
|
|
|
|
|
|
|
|
get tagsPublic() {
|
|
|
|
return shared.pipeline(require('./tags-public'), localUtils, 'content');
|
|
|
|
},
|
|
|
|
|
|
|
|
get publicSettings() {
|
|
|
|
return shared.pipeline(require('./settings-public'), localUtils, 'content');
|
|
|
|
},
|
|
|
|
|
|
|
|
get postsPublic() {
|
|
|
|
return shared.pipeline(require('./posts-public'), localUtils, 'content');
|
|
|
|
},
|
|
|
|
|
|
|
|
get authorsPublic() {
|
|
|
|
return shared.pipeline(require('./authors-public'), localUtils, 'content');
|
2021-05-26 18:01:55 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
get productsPublic() {
|
|
|
|
return shared.pipeline(require('./products-public'), localUtils, 'content');
|
2019-08-09 17:11:24 +03:00
|
|
|
}
|
|
|
|
};
|