9394fad6aa
closes #1961 - Refactor admin to use its own express instance - Refactor middlewares to work with /ghost mounted admin express instance
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
var admin = require('../controllers/admin'),
|
|
express = require('express'),
|
|
|
|
adminRoutes;
|
|
|
|
adminRoutes = function () {
|
|
var router = express.Router();
|
|
|
|
router.get('*', admin.index);
|
|
|
|
return router;
|
|
};
|
|
|
|
module.exports = adminRoutes;
|