clean up paths for server and server-dist, remove cors #96

This commit is contained in:
Matt Walsh
2025-06-02 20:59:35 -05:00
parent dc64e4bd7f
commit 974a061b44
7 changed files with 9 additions and 154 deletions

View File

@@ -42,7 +42,6 @@ class CurrentWeather extends WeatherDisplay {
// station observations
// eslint-disable-next-line no-await-in-loop
observations = await json(`${station.id}/observations`, {
cors: true,
data: {
limit: 2,
},

View File

@@ -87,7 +87,7 @@ class Radar extends WeatherDisplay {
const lists = (await Promise.all(baseUrls.map(async (url) => {
try {
// get a list of available radars
return text(url, { cors: true });
return text(url);
} catch (error) {
console.log('Unable to get list of radars');
console.error(error);