mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
0ae0a0b490
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]
15 lines
408 B
JavaScript
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);
|
|
}
|
|
};
|