mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
refs #9865 * Added generic messaging for resource not found * Ensured integration model uses transaction for writes * Created POST /integrations endpoint * Created GET /integrations/:id endpoint * Created GET /integrations endpoint * Created PUT /integrations/:id endpoint * Created DELETE /integrations/:id endpoint
69 lines
1.5 KiB
JavaScript
69 lines
1.5 KiB
JavaScript
const shared = require('../shared');
|
|
const localUtils = require('./utils');
|
|
|
|
module.exports = {
|
|
get http() {
|
|
return shared.http;
|
|
},
|
|
|
|
get integrations() {
|
|
return shared.pipeline(require('./integrations'), localUtils);
|
|
},
|
|
|
|
// @TODO: transform
|
|
get session() {
|
|
return require('./session');
|
|
},
|
|
|
|
get pages() {
|
|
return shared.pipeline(require('./pages'), 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);
|
|
},
|
|
|
|
get subscribers() {
|
|
return shared.pipeline(require('./subscribers'), localUtils);
|
|
},
|
|
|
|
get upload() {
|
|
return shared.pipeline(require('./upload'), localUtils);
|
|
},
|
|
|
|
get tags() {
|
|
return shared.pipeline(require('./tags'), localUtils);
|
|
},
|
|
|
|
get users() {
|
|
return shared.pipeline(require('./users'), localUtils);
|
|
}
|
|
};
|