Commit 5eb7fd02 authored by sandroresende's avatar sandroresende

download carteria investimento e dicionario

parent 768737a4
......@@ -1216,4 +1216,10 @@ class ApiController extends Controller
return Acoes::orderBy('cod_acao_governo')->get();
}
}
\ No newline at end of file
public function downloadCarteira($file_name)
{
$file_path = public_path('/arquivos/dados_abertos/' . $file_name);
return response()->download($file_path);
}
}
......@@ -273,11 +273,7 @@ class CarteiraInvestimentoController extends Controller
}
}
public function downloadCarteira($file_name)
{
$file_path = public_path('/arquivos/dados_abertos/' . $file_name);
return response()->download($file_path);
}
......
......@@ -316,7 +316,7 @@ Route::get('/carteira_investimento/sub_fonte/{fonte}', 'ApiController@buscarSubf
Route::get('/carteira_investimento/tipo_instrumento', 'ApiController@buscarTipoInstrumento');
Route::get('/carteira_investimento/secretarias', 'ApiController@buscarSecretariasCarteira');
Route::get('/carteira_investimento/download/{file_name}', 'ApiController@downloadCarteira');
//TransfereGov
//Eixos
......
......@@ -164,7 +164,7 @@ Route::get('/carteira_investimento/constratos/secretarias/nao_informadas', 'Mod_
Route::post('/carteira_investimento/secretaria/update', 'Mod_carteira_investimento\CarteiraInvestimentoController@updateSecretaria');
Route::get('/carteira_investimento/download/{file_name}', 'Mod_carteira_investimento\CarteiraInvestimentoController@downloadCarteira');
////briefing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment