Refacto : MAJ api url recherche-entreprises

pull/2027/head
Julien Bouquillon 2022-02-21 18:08:39 +01:00 committed by Johan Girod
parent 3f5e9414a5
commit a9548652bb
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ type FabriqueSocialSearchPayload = {
const COMPANY_SEARCH_HOST =
import.meta.env.VITE_COMPANY_SEARCH_HOST ||
'https://search-recherche-entreprises.fabrique.social.gouv.fr'
'https://api.recherche-entreprises.fabrique.social.gouv.fr'
const makeSearchUrl = (query: string, limit: number) =>
`${COMPANY_SEARCH_HOST}/api/v1/search?query=${query}&open=true&convention=false&employer=false&ranked=false&limit=${limit}`