diff --git a/src/libs/routes/SMPPIR/african_culture.js b/src/libs/routes/SMPPIR/african_culture.js new file mode 100644 index 0000000000000000000000000000000000000000..5c3c4594961b94ad586cdc1db153cb6eee73fb4c --- /dev/null +++ b/src/libs/routes/SMPPIR/african_culture.js @@ -0,0 +1,108 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'african_culture_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name: 'family_type', + table: 'african_culture_ag', + tableField: 'ind_tipo_familia', + resultField: 'ind_parc_mds_fam', + where: { + relation: '=', + type: 'string', + field: 'ind_tipo_familia', + }, +}) + +.addValue({ + name:'cod_local_home', + table:'african_culture_ag', + tableField:'cod_local_domicilio', + resultField:'cod_local_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_local_domicilio', + }, +}) + +.addValue({ + name: 'home_type', + table: 'african_culture_ag', + tableField: 'cod_especie_domicilio', + resultField: 'cod_especie_domic_fam', + where: { + relation: '=', + type: 'string', + field: 'cod_especie_domicilio', + }, +}) + + + +; + + +cad_unico.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('african_culture_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico; diff --git a/src/libs/routes/SMPPIR/african_rights.js b/src/libs/routes/SMPPIR/african_rights.js new file mode 100644 index 0000000000000000000000000000000000000000..7e1ef7a400f97b83023b0146545052a2e8941c4c --- /dev/null +++ b/src/libs/routes/SMPPIR/african_rights.js @@ -0,0 +1,120 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'african_rights_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name: 'family_type', + table: 'african_rights_ag', + tableField: 'ind_tipo_familia', + resultField: 'ind_parc_mds_fam', + where: { + relation: '=', + type: 'string', + field: 'ind_tipo_familia', + }, +}) + +.addValue({ + name: 'education_families_conclude', + table: 'african_rights_ag', + tableField: 'concluiu_frequentou', + resultField: 'cod_concluiu_frequentou_memb', + where: { + relation: '=', + type: 'string', + field: 'concluiu_frequentou', + }, +}) + +.addValue({ + name: 'education_families_level', + table: 'african_rights_ag', + tableField: 'ano_serie_frequentou', + resultField: 'cod_ano_serie_frequentou_memb', + where: { + relation: '=', + type: 'string', + field: 'ano_serie_frequentou', + }, +}) + +.addValue({ + name: 'education_families', + table: 'african_rights_ag', + tableField: 'curso_frequentou', + resultField: 'cod_curso_frequentou_pessoa_memb', + where: { + relation: '=', + type: 'string', + field: 'curso_frequentou', + }, +}) + + + +; + + +cad_unico.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('african_rights_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico; diff --git a/src/libs/routes/SMPPIR/african_sustentability.js b/src/libs/routes/SMPPIR/african_sustentability.js new file mode 100644 index 0000000000000000000000000000000000000000..2e24a019bba46ce7dec13bc700b4432c9cf05038 --- /dev/null +++ b/src/libs/routes/SMPPIR/african_sustentability.js @@ -0,0 +1,95 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'african_sustentability_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name: 'family_type', + table: 'african_sustentability_ag', + tableField: 'ind_tipo_familia', + resultField: 'ind_parc_mds_fam', + where: { + relation: '=', + type: 'string', + field: 'ind_tipo_familia', + }, +}) + +.addValue({ + name: 'per_capita_income', + table: 'african_sustentability_ag', + tableField: 'renda_media', + resultField: 'vlr_renda_media_fam', + where: { + relation: '=', + type: 'float', + field: 'renda_media', + }, +}) + + +; + + +cad_unico.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('african_sustentability_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico; diff --git a/src/libs/routes/SMPPIR/cad_unico.js b/src/libs/routes/SMPPIR/cad_unico.js index ea903e317fa60bb6c20fd69dbb03c9918eaeae15..10d0b06076c5a26e21716868518adaf6f3c866e1 100644 --- a/src/libs/routes/SMPPIR/cad_unico.js +++ b/src/libs/routes/SMPPIR/cad_unico.js @@ -266,6 +266,18 @@ rqf.addField({ }, }) +.addValue({ + name:'gender', + table:'cad_unico_ag', + tableField:'genero', + resultField:'genero', + where: { + relation:'=', + type:'string', + field:'genero', + }, +}) + ; diff --git a/src/libs/routes/SMPPIR/cad_unico_count.js b/src/libs/routes/SMPPIR/cad_unico_count.js index 438145a2c1ea90e9f5961e4e657fcebf4c4ebefe..412f3b4486cc121053ae6bfc0b90073a444f857a 100644 --- a/src/libs/routes/SMPPIR/cad_unico_count.js +++ b/src/libs/routes/SMPPIR/cad_unico_count.js @@ -115,7 +115,7 @@ rqf.addField({ type:'string', field:'cod_abastecimento_agua_domicilio', }, -}) +}) .addValue({ name:'cod_home_bolsa_familia', @@ -254,6 +254,18 @@ rqf.addField({ }, }) +.addValue({ + name: 'gender', + table: 'cad_unico_ag', + tableField: 'genero', + resultField: 'genero', + where: { + relation: '=', + type: 'string', + field: 'genero', + }, +}) + .addValue({ name:'cod_sanitary_dump', table:'cad_unico_ag', diff --git a/src/libs/routes/SMPPIR/eixo_2.js b/src/libs/routes/SMPPIR/eixo_2.js new file mode 100644 index 0000000000000000000000000000000000000000..9b1a15f2b506be35a111df4af7353b181658dc26 --- /dev/null +++ b/src/libs/routes/SMPPIR/eixo_2.js @@ -0,0 +1,205 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'quilombola_eixo_2_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name: 'family_type', + table: 'quilombola_eixo_2_ag', + tableField: 'ind_tipo_familia', + resultField: 'ind_parc_mds_fam', + where: { + relation: '=', + type: 'string', + field: 'ind_tipo_familia', + }, +}) + +.addValue({ + name:'cod_local_home', + table:'quilombola_eixo_2_ag', + tableField:'cod_local_domicilio', + resultField:'cod_local_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_local_domicilio', + }, +}) + +.addValue({ + name:'cod_home_lighting', + table:'quilombola_eixo_2_ag', + tableField:'cod_iluminacao_domicilio', + resultField:'cod_iluminacao_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_iluminacao_domicilio', + }, +}) + +.addValue({ + name:'cod_home_trash_destiny', + table:'quilombola_eixo_2_ag', + tableField:'cod_destino_lixo_domicilio', + resultField:'cod_destino_lixo_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_destino_lixo_domicilio', + }, +}) + +.addValue({ + name:'cod_home_watter_supply', + table:'quilombola_eixo_2_ag', + tableField:'cod_abastecimento_agua_domicilio', + resultField:'cod_abaste_agua_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_abastecimento_agua_domicilio', + }, +}) + + +.addValue({ + name:'quilombola_family', + table:'quilombola_eixo_2_ag', + tableField:'ind_familia_quilombola', + resultField:'ind_familia_quilombola_fam', + where: { + relation:'=', + type:'string', + field:'ind_familia_quilombola', + }, +}) + + + +.addValue({ + name: 'home_type', + table: 'quilombola_eixo_2_ag', + tableField: 'cod_especie_domicilio', + resultField: 'cod_especie_domic_fam', + where: { + relation: '=', + type: 'string', + field: 'cod_especie_domicilio', + }, +}) + +.addValue({ + name: 'home_location', + table: 'quilombola_eixo_2_ag', + tableField: 'codigo_ibge', + resultField: 'cd_ibge', + where: { + relation: '=', + type: 'string', + field: 'codigo_ibge', + }, +}) + + +.addValue({ + name: 'uf', + table: 'quilombola_eixo_2_ag', + tableField: 'sigla_estado', + resultField: 'uf', + where: { + relation: '=', + type: 'string', + field: 'sigla_estado', + }, +}) +.addValue({ + name: 'region', + table: 'quilombola_eixo_2_ag', + tableField : 'nome_regiao', + resultField: 'region', + where: { + relation: '=', + type: 'string', + field: 'nome_regiao', + }, +}) + +.addValue({ + name:'cod_sanitary_dump', + table:'quilombola_eixo_2_ag', + tableField:'cod_escoa_sanitario_domicilio', + resultField:'cod_escoa_sanitario_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_escoa_sanitario_domic_fam', + }, +}) + +; + + +cad_unico.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('quilombola_eixo_2_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico; diff --git a/src/libs/routes/SMPPIR/eixo_3.js b/src/libs/routes/SMPPIR/eixo_3.js new file mode 100644 index 0000000000000000000000000000000000000000..0a6edb94d27fb552eb211b6291f919f19beef7eb --- /dev/null +++ b/src/libs/routes/SMPPIR/eixo_3.js @@ -0,0 +1,167 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico_count = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'quilombola_eixo_3_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name: 'family_type', + table: 'quilombola_eixo_3_ag', + tableField: 'ind_tipo_familia', + resultField: 'ind_parc_mds_fam', + where: { + relation: '=', + type: 'string', + field: 'ind_tipo_familia', + }, +}) + + +.addValue({ + name:'cod_home_bolsa_familia', + table:'quilombola_eixo_3_ag', + tableField:'marca_programa_bolsa_familia', + resultField:'marc_pbf', + where: { + relation:'=', + type:'string', + field:'marca_programa_bolsa_familia', + }, +}) + +.addValue({ + name:'quilombola_family', + table:'quilombola_eixo_3_ag', + tableField:'ind_familia_quilombola', + resultField:'ind_familia_quilombola_fam', + where: { + relation:'=', + type:'string', + field:'ind_familia_quilombola', + }, +}) + +.addValue({ + name:'cod_agriculture_job', + table:'quilombola_eixo_3_ag', + tableField:'atividade_extrativista', + resultField:'cod_agricultura_trab_memb', + where: { + relation:'=', + type:'string', + field:'atividade_extrativista', + }, +}) + + +.addValue({ + name: 'per_capita_income', + table: 'quilombola_eixo_3_ag', + tableField: 'renda_media', + resultField: 'vlr_renda_media_fam', + where: { + relation: '=', + type: 'float', + field: 'renda_media', + }, +}) + +.addValue({ + name: 'home_location', + table: 'quilombola_eixo_3_ag', + tableField: 'codigo_ibge', + resultField: 'cd_ibge', + where: { + relation: '=', + type: 'string', + field: 'codigo_ibge', + }, +}) + +.addValue({ + name: 'uf', + table: 'quilombola_eixo_3_ag', + tableField: 'sigla_estado', + resultField: 'uf', + where: { + relation: '=', + type: 'string', + field: 'sigla_estado', + }, +}) +.addValue({ + name: 'region', + table: 'quilombola_eixo_3_ag', + tableField : 'nome_regiao', + resultField: 'region', + where: { + relation: '=', + type: 'string', + field: 'nome_regiao', + }, +}) + +; + + +cad_unico_count.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('quilombola_eixo_3_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico_count; diff --git a/src/libs/routes/SMPPIR/eixo_4.js b/src/libs/routes/SMPPIR/eixo_4.js new file mode 100644 index 0000000000000000000000000000000000000000..3e9c8539fc2c202e9e72a1ab419c7f0bf2b39228 --- /dev/null +++ b/src/libs/routes/SMPPIR/eixo_4.js @@ -0,0 +1,177 @@ +/* +Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of SMPPIR-Node. + +SMPPIR-Node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SMPPIR-Node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. +*/ + + + +const express = require('express'); + +const cad_unico = express.Router(); + +const libs = `${process.cwd()}/libs`; + +const squel = require('squel'); + +const query = require(`${libs}/middlewares/query`).query; + +const response = require(`${libs}/middlewares/response`); + +const ReqQueryFields = require(`${libs}/middlewares/reqQueryFields`); + +const rqf = new ReqQueryFields(); + +rqf.addField({ + name: 'filter', + field: false, + where: true, +}).addField({ + name: 'dims', + field: true, + where: false, +}) +.addValue({ + name: 'year', + table: 'quilombola_eixo_4_ag', + tableField: 'ano_censo', + resultField: 'ano_pesquisa', + where: { + relation: '=', + type: 'integer', + field: 'ano_censo', + }, +}) + +.addValue({ + name:'cod_local_home', + table:'quilombola_eixo_4_ag', + tableField:'cod_local_domicilio', + resultField:'cod_local_domic_fam', + where: { + relation:'=', + type:'string', + field:'cod_local_domicilio', + }, +}) + +.addValue({ + name:'quilombola_family', + table:'quilombola_eixo_4_ag', + tableField:'ind_familia_quilombola', + resultField:'ind_familia_quilombola_fam', + where: { + relation:'=', + type:'string', + field:'ind_familia_quilombola', + }, +}) + +.addValue({ + name:'age', + table:'quilombola_eixo_4_ag', + tableField:'idade', + resultField:'idade', + where: { + relation:'=', + type:'string', + field:'idade', + }, +}) + + +.addValue({ + name: 'education_families_conclude', + table: 'quilombola_eixo_4_ag', + tableField: 'concluiu_frequentou', + resultField: 'cod_concluiu_frequentou_memb', + where: { + relation: '=', + type: 'string', + field: 'concluiu_frequentou', + }, +}) +.addValue({ + name: 'education_families_level', + table: 'quilombola_eixo_4_ag', + tableField: 'ano_serie_frequentou', + resultField: 'cod_ano_serie_frequentou_memb', + where: { + relation: '=', + type: 'string', + field: 'ano_serie_frequentou', + }, +}) +.addValue({ + name: 'education_families', + table: 'quilombola_eixo_4_ag', + tableField: 'curso_frequentou', + resultField: 'cod_curso_frequentou_pessoa_memb', + where: { + relation: '=', + type: 'string', + field: 'curso_frequentou', + }, +}) +.addValue({ + name: 'uf', + table: 'quilombola_eixo_4_ag', + tableField: 'sigla_estado', + resultField: 'uf', + where: { + relation: '=', + type: 'string', + field: 'sigla_estado', + }, +}) + +.addValue({ + name: 'region', + table: 'quilombola_eixo_4_ag', + tableField : 'nome_regiao', + resultField: 'region', + where: { + relation: '=', + type: 'string', + field: 'nome_regiao', + }, +}) + +.addValue({ + name:'gender', + table:'quilombola_eixo_4_ag', + tableField:'genero', + resultField:'genero', + where: { + relation:'=', + type:'string', + field:'genero', + }, +}) + + +; + + +cad_unico.get('/', rqf.parse(), rqf.build(), (req, res, next) => { + console.log(req.sql.toString()); + req.sql.field('SUM(total) AS Total') + .from('quilombola_eixo_4_ag'); + next(); +}, query, response('cad_unico')); + +module.exports = cad_unico; diff --git a/src/libs/routes/api.js b/src/libs/routes/api.js index 81372d885c400469c793838057b39688b4278d23..69f5e2b4dd95adc912cb593bc69114b4d66e0631 100644 --- a/src/libs/routes/api.js +++ b/src/libs/routes/api.js @@ -131,6 +131,21 @@ const ibge_code = require(`${libs}/routes/SMPPIR/ibge_code`); const vacancies = require(`${libs}/routes/SMPPIR/vacancy`); +const eixo_2 = require(`${libs}/routes/SMPPIR/eixo_2`) + +const eixo_3 = require(`${libs}/routes/SMPPIR/eixo_3`) + +const eixo_4 = require(`${libs}/routes/SMPPIR/eixo_4`) + +const african_rights = require(`${libs}/routes/SMPPIR/african_rights`) + +const african_culture = require(`${libs}/routes/SMPPIR/african_culture`) + +const african_sustentability = require(`${libs}/routes/SMPPIR/african_sustentability`) + + + +//const eixo_2_count = require(`${libs}/routes/SMPPIR/eixo_2_count`) api.get('/', (req, res) => { res.json({ msg: 'SMPPIR API is running' }); @@ -201,5 +216,15 @@ api.use('/cad_unico', cad_unico); api.use('/cad_unico_count', cad_unico_count); api.use('/ibge_code', ibge_code); api.use('/vacancy', vacancies); +api.use('/eixo_2', eixo_2); +api.use('/eixo_3', eixo_3); +api.use('/eixo_4', eixo_4); +api.use('/african_rights', african_rights); +api.use('/african_culture', african_culture); +api.use('/african_sustentability', african_sustentability); + + + +//api.use('/eixo_2_count', eixo_2_count) module.exports = api;