diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 11:58:05 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 11:58:05 +0700 |
| commit | 33da0fcb718335eb1d077af4321ac65e0146a2d6 (patch) | |
| tree | d87dab8d58c3e148e3e541a88b1ef7d2fd6d0ba7 /src/api | |
| parent | c65d7f6b82a7f2f80b1fe43a0bd06144d2ca64ff (diff) | |
Refactoring hero banner feature
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/BannerApi.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/BannerApi.js b/src/api/BannerApi.js new file mode 100644 index 00000000..8ebecd26 --- /dev/null +++ b/src/api/BannerApi.js @@ -0,0 +1,5 @@ +import odooApi from '@/core/api/odooApi' + +export const BannerApi = ({ type }) => { + return async () => await odooApi('GET', `/api/v1/banner?type=${type}`) +} |
