From eada1d43ef8318ea8c8dba25a2ee0a39884f4455 Mon Sep 17 00:00:00 2001
From: jc3 <jc3@jc3.aura>
Date: Tue, 21 Jul 2020 17:16:44 -0700
Subject: [PATCH] launching test API project
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index d114ccf..d6ebbaa 100644
--- a/index.js
+++ b/index.js
@@ -55,7 +55,7 @@ const parse_qs = ( qs_object_input, model_input ) => {
}
if( query_object.colors ){
-
+
results = results.filter(
fruit => fruit.colors.some(
c => query_object.colors.includes(c)
@@ -87,8 +87,8 @@ app.get('/fruit', (req,res)=>{
res.json( parse_qs( qs_object, model ) )
})
-const PORT = 3000
+//const PORT = 3000
-app.listen(PORT, ()=>{
+app.listen(443, ()=>{
console.log(`App listening on port: ${PORT}`
)})
\ No newline at end of file
--
GitLab