removed absolute paths where necessary and implemented relative pathing

This commit is contained in:
cerc 2024-10-16 18:39:52 -04:00
parent 58e99c500d
commit 6217e8913a
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NGCI Daily Schedule</title>
<script type="module" crossorigin src="/assets/index--Q5o5huW.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Bq7sOAzP.css">
<script type="module" crossorigin src="assets/index--Q5o5huW.js"></script>
<link rel="stylesheet" crossorigin href="assets/index-Bq7sOAzP.css">
</head>
<body>

View File

@ -136,7 +136,7 @@ app.get('/api/slideshow', (req, res) => {
const imagePaths = files
.filter(file => /\.(jpg|jpeg|png|gif)$/i.test(file))
.map(file => `/slideshow/${file}`);
.map(file => `slideshow/${file}`);
res.json(imagePaths);
});