0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/apps/members/index.js
Fabien O'Carroll 48923ac327
Wired members service up to api and app (#10262)
* Updated auth service members middleware

refs #10213

* Wired up members api router to the ghost api endpoints

refs #10213

* Created members app for the static pages

refs #10213

* Wired up the members app

refs #10213
2018-12-11 15:18:07 +07:00

12 lines
298 B
JavaScript

const membersService = require('../../services/members');
const labs = require('../../services/labs');
module.exports = {
activate() {},
setupMiddleware(router) {
if (labs.isSet('members')) {
router.use('/members', membersService.api.staticRouter);
}
}
};