From 6cd859e2a7c2730afcb4c3375bea23b832c3bef0 Mon Sep 17 00:00:00 2001 From: yahya Date: Wed, 23 Nov 2022 21:28:16 +0100 Subject: [PATCH] (refacto) move api secret to env variable export MYAPIKEY=ndsvn2g8dnsb9hsg --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 493c66e..aaa8943 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,7 @@ import {formations} from "./data/formations.data.js"; const app = express() const port = 3000 -const API_KEY = '395a9cce-6ffc-48b8-8372-b95089c3abc6' +const API_KEY = process.env.MYAPIKEY app.get('/formations', (req, res) => {