mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Removed serving of auth pages from lib/members
no-issue
This commit is contained in:
parent
bf156b0b79
commit
2c9130a244
1 changed files with 1 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
const {Router, static} = require('express');
|
||||
const {Router} = require('express');
|
||||
const body = require('body-parser');
|
||||
|
||||
const {getData, handleError} = require('./util');
|
||||
|
@ -207,7 +207,6 @@ module.exports = function MembersApi({
|
|||
|
||||
/* http */
|
||||
const staticRouter = Router();
|
||||
staticRouter.use('/static', static(require('path').join(__dirname, './static/auth/dist')));
|
||||
staticRouter.get('/gateway', (req, res) => {
|
||||
res.status(200).send(`
|
||||
<script>
|
||||
|
@ -219,10 +218,6 @@ module.exports = function MembersApi({
|
|||
staticRouter.get('/bundle.js', (req, res) => {
|
||||
res.status(200).sendFile(require('path').join(__dirname, './static/gateway/bundle.js'));
|
||||
});
|
||||
staticRouter.get('/*', (req, res) => {
|
||||
res.status(200).sendFile(require('path').join(__dirname, './static/auth/dist/index.html'));
|
||||
});
|
||||
|
||||
/* http */
|
||||
router.use('/api', apiRouter);
|
||||
router.use('/static', staticRouter);
|
||||
|
|
Loading…
Add table
Reference in a new issue