Skip to content

Commit a03eebf

Browse files
Get weather working again
1 parent bf374a3 commit a03eebf

File tree

5 files changed

+1298
-71
lines changed

5 files changed

+1298
-71
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/public/build/
33
/.vscode/
44
.DS_Store
5+
.vercel

api/weather.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import fetch from "isomorphic-fetch"
2+
3+
export default async function (request, response) {
4+
const data = await fetch('https://www.metservice.com/publicData/webdata/maps-radar/weather-stations/nz').then(r => r.json());
5+
response.json(data)
6+
}

0 commit comments

Comments
 (0)