mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix redirect from / in api
This commit is contained in:
@@ -88,7 +88,7 @@ export default async function createApp() {
|
||||
html = html.replace(/href="\//g, `href="${env.PUBLIC_URL}`);
|
||||
html = html.replace(/src="\//g, `src="${env.PUBLIC_URL}`);
|
||||
|
||||
app.get('/', (req, res) => res.redirect(`${env.PUBLIC_URL}/admin/`));
|
||||
app.get('/', (req, res) => res.redirect(`${env.PUBLIC_URL}admin/`));
|
||||
app.get('/admin', (req, res) => res.send(html));
|
||||
app.use('/admin', express.static(path.join(adminPath, '..')));
|
||||
app.use('/admin/*', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user