0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/v2/index.js
Nazar Gargol eb0bc3068c Migrated roles controller to API v2
refs #9866

- Added new controller to v2 API
- Added roles tests to v2 API
2018-10-10 16:48:22 +02:00

21 lines
419 B
JavaScript

const shared = require('../shared');
const localUtils = require('./utils');
module.exports = {
get http() {
return shared.http;
},
// @TODO: transform
get session() {
return require('./session');
},
get pages() {
return shared.pipeline(require('./pages'), localUtils);
},
get roles() {
return shared.pipeline(require('./roles'), localUtils);
}
};