aswi2023one-team-to-rule-them-all-gitlab/src/api/searchService.ts @ 9c55d3bb
1 | 9c55d3bb | Schwobik | import { axiosInstance } from "./api" |
---|---|---|---|
2 | |||
3 | export interface SearchParams { |
||
4 | inventory?: string |
||
5 | //TODO: add other search params
|
||
6 | }
|
||
7 | |||
8 | export const searchRequest = async (params: SearchParams) => { |
||
9 | return await axiosInstance.get(`/api/search_v2/${ (params.inventory ? `inventory=${ params.inventory }` : "")}`) |
||
10 | }
|