0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/apps/amp/index.js
kirrg001 0ae0a0b490 🎨 change how we get and set config
refs #6982
- a replace for all config usages
- always use config.get or config.set
- this a pure replacement, no logic has changed

[ci skip]
2016-09-20 15:59:34 +01:00

15 lines
408 B
JavaScript

var router = require('./lib/router'),
registerAmpHelpers = require('./lib/helpers'),
// Dirty requires
config = require('../../config');
module.exports = {
activate: function activate(ghost) {
registerAmpHelpers(ghost);
},
setupRoutes: function setupRoutes(blogRouter) {
blogRouter.use('*/' + config.get('routeKeywords').amp + '/', router);
}
};