mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
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;
|