diff --git a/Architecture logicielle et qualité du code.odp b/Architecture logicielle et qualité du code.odp index 5d513cd..f1a826c 100644 Binary files a/Architecture logicielle et qualité du code.odp and b/Architecture logicielle et qualité du code.odp differ diff --git a/src/index.ts b/src/index.ts index fd5f0f6..a33942e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,7 @@ import fetch from "node-fetch"; import { v4 as uuid } from "uuid"; const db = new Database("weathery.db"); +const APPID = "d6f0f985f37372e9824c68a52662cc23"; const app = fastify({ logger: true, @@ -36,7 +37,7 @@ app.get("/", async () => { locations.map(async (location) => { const { lat, lon } = location; const { weather, main: properties } = await fetch( - `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}&appid=d6f0f985f37372e9824c68a52662cc23&units=metric` + `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}&appid=${APPID}&units=metric` ).then((r) => r.json()); return {