cleanup call to contratti API
This commit is contained in:
+2
-3
@@ -91,9 +91,8 @@ export default class RecuperoPropostaCctDaContrattiComponent extends ElixFormsCo
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const url = new URL(config.apiUrl);
|
const url = new URL(config.apiUrl);
|
||||||
url.searchParams.set('_where', `{ "or": [ { "idContratto": { "contains": "${searchTerm}" } }, { "titoloContratto": { "contains": "${searchTerm}" } } ] }` );
|
url.searchParams.set('cod_fis', this.codiceFiscale);
|
||||||
//url.searchParams.set('cod_fis', this.codiceFiscale);
|
url.searchParams.set('term', searchTerm);
|
||||||
//url.searchParams.set('term', searchTerm);
|
|
||||||
|
|
||||||
const credentials = btoa(`${config.apiUsername}:${config.apiPassword}`);
|
const credentials = btoa(`${config.apiUsername}:${config.apiPassword}`);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"apiUrl": "http://localhost:3000/contratti",
|
"apiUrl": "http://localhost:8000/contratti/cerca",
|
||||||
"apiUsername": "your-username",
|
"apiUsername": "your-username",
|
||||||
"apiPassword": "your-password",
|
"apiPassword": "your-password",
|
||||||
"apiKey": "your-api-key",
|
"apiKey": "your-api-key",
|
||||||
|
|||||||
Reference in New Issue
Block a user