blob: cb7b19cca5880ed9886aac38b88e93f44c083058 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import odooApi from '~/libs/odooApi';
import { IBanner } from '~/types/banner';
type GetBannerProps = {
type: string;
};
export const getBanner = async (params: GetBannerProps): Promise<IBanner[]> => {
const url = `/api/v1/banner`;
const searchParams = new URLSearchParams(params);
return await odooApi('GET', `${url}?${searchParams}`);
};
|