Skip to content
Snippets Groups Projects
Commit fae81e5c authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(search) : add data counter

parent 908281b7
No related branches found
No related tags found
3 merge requests!14Recette,!13Dev,!6Topic search
......@@ -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,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment