Skip to content

Commit bef18d3

Browse files
committed
patch rooms
1 parent 360469e commit bef18d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PORT = process.env.PORT || port;
2727

2828
app.use(express.json());
2929
app.use(responseTime());
30-
app.use(express.static('../public'))
30+
app.use('/public', express.static('./public'));
3131

3232
app.use(cors());
3333
app.use('/api/', login, limiter.standard);

src/requests/rooms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const parseSchedule = (raw, date) => {
7676
const [roomNumber, ...nameRaw] = title.textContent.trim().split(' ').slice(1);
7777

7878
result['roomNumber'] = roomNumber;
79-
result['img'] = `https://wilma.otawilma.fi/rooms/${roomNumber}.jpg`;
79+
result['img'] = `https://wilma.otawilma.fi/public/rooms/${roomNumber}.jpg`;
8080
result['name'] = nameRaw.join(' ').replace(' - Wilma', '');
8181

8282
const jRaw = (document.getElementsByTagName('script').at(-1).textContent.trim());

0 commit comments

Comments
 (0)