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"> <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>

View File

@ -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);
}); });