removed absolute paths where necessary and implemented relative pathing
This commit is contained in:
parent
58e99c500d
commit
6217e8913a
File diff suppressed because one or more lines are too long
|
@ -6,8 +6,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>NGCI Daily Schedule</title>
|
<title>NGCI Daily Schedule</title>
|
||||||
|
|
||||||
<script type="module" crossorigin src="/assets/index--Q5o5huW.js"></script>
|
<script type="module" crossorigin src="assets/index--Q5o5huW.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-Bq7sOAzP.css">
|
<link rel="stylesheet" crossorigin href="assets/index-Bq7sOAzP.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -136,7 +136,7 @@ app.get('/api/slideshow', (req, res) => {
|
||||||
|
|
||||||
const imagePaths = files
|
const imagePaths = files
|
||||||
.filter(file => /\.(jpg|jpeg|png|gif)$/i.test(file))
|
.filter(file => /\.(jpg|jpeg|png|gif)$/i.test(file))
|
||||||
.map(file => `/slideshow/${file}`);
|
.map(file => `slideshow/${file}`);
|
||||||
|
|
||||||
res.json(imagePaths);
|
res.json(imagePaths);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user