mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
16 lines
401 B
JavaScript
16 lines
401 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.routeKeywords.amp + '/', router);
|
||
|
}
|
||
|
};
|