Ghost/core/server/routes/admin.js
Fabian Becker 9394fad6aa Have /ghost use its own express instance
closes #1961
- Refactor admin to use its own express instance
- Refactor middlewares to work with /ghost mounted admin express instance
2014-09-19 08:57:13 +00:00

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;