From fae81e5cdf6d1f803106223e8dd3ddd939fb5b72 Mon Sep 17 00:00:00 2001
From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com>
Date: Tue, 20 Oct 2020 09:40:45 +0200
Subject: [PATCH] fix(search) : add data counter

---
 api/server.js | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/api/server.js b/api/server.js
index 0bcb25ead..08ca86cb0 100644
--- a/api/server.js
+++ b/api/server.js
@@ -9,6 +9,7 @@ server.use(middlewares);
 // Add custom routes before JSON Server router
 server.get('/structures/count', (req, res) => {
   let structureCountTab = [];
+  // Compétences de base
   structureCountTab.push({ id: 260, count: 3 });
   structureCountTab.push({ id: 260, count: 3 });
   structureCountTab.push({ id: 259, count: 3 });
@@ -18,6 +19,45 @@ server.get('/structures/count', (req, res) => {
   structureCountTab.push({ id: 212, count: 3 });
   structureCountTab.push({ id: 186, count: 2 });
   structureCountTab.push({ id: 183, count: 2 });
+  // Accès aux droits
+  structureCountTab.push({ id: 176, count: 2 });
+  structureCountTab.push({ id: 175, count: 1 });
+  structureCountTab.push({ id: 174, count: 1 });
+  structureCountTab.push({ id: 173, count: 1 });
+  structureCountTab.push({ id: 172, count: 1 });
+  structureCountTab.push({ id: 171, count: 1 });
+  structureCountTab.push({ id: 167, count: 1 });
+  structureCountTab.push({ id: 165, count: 1 });
+  // Insertion sociale et professionnelle
+  structureCountTab.push({ id: 254, count: 2 });
+  structureCountTab.push({ id: 240, count: 2 });
+  structureCountTab.push({ id: 194, count: 3 });
+  structureCountTab.push({ id: 193, count: 3 });
+  structureCountTab.push({ id: 192, count: 3 });
+  structureCountTab.push({ id: 191, count: 3 });
+  structureCountTab.push({ id: 262, count: 3 });
+  structureCountTab.push({ id: 263, count: 2 });
+  structureCountTab.push({ id: 3, count: 2 });
+  // Aide à la parentalité
+  structureCountTab.push({ id: 257, count: 2 });
+  structureCountTab.push({ id: 238, count: 2 });
+  structureCountTab.push({ id: 178, count: 1 });
+  structureCountTab.push({ id: 166, count: 1 });
+  // Culture et sécurité numérique
+  structureCountTab.push({ id: 264, count: 2 });
+  structureCountTab.push({ id: 255, count: 2 });
+  structureCountTab.push({ id: 265, count: 2 });
+  structureCountTab.push({ id: 232, count: 2 });
+  structureCountTab.push({ id: 225, count: 2 });
+  structureCountTab.push({ id: 221, count: 2 });
+  structureCountTab.push({ id: 218, count: 1 });
+  structureCountTab.push({ id: 209, count: 1 });
+  structureCountTab.push({ id: 208, count: 1 });
+  structureCountTab.push({ id: 206, count: 2 });
+  structureCountTab.push({ id: 195, count: 1 });
+  structureCountTab.push({ id: 164, count: 1 });
+  structureCountTab.push({ id: 163, count: 1 });
+  structureCountTab.push({ id: 162, count: 2 });
   return res.status(200).jsonp({
     structureCountTab,
   });
-- 
GitLab