chore: file formatting
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import apiClient from "@/api/client";
|
||||
import apiClient from '@/api/client';
|
||||
|
||||
export const getNewsApi = async (page = 1, limit = 10, search = "") => {
|
||||
const res = await apiClient.get(
|
||||
`/newsMedia/getAll?page=${page}&limit=${limit}&search=${search}`,
|
||||
);
|
||||
export const getNewsApi = async (page = 1, limit = 10, search = '') => {
|
||||
const res = await apiClient.get(`/newsMedia/getAll?page=${page}&limit=${limit}&search=${search}`);
|
||||
return res.data;
|
||||
};
|
||||
|
||||
export const createNewsApi = async (data: any) => {
|
||||
const res = await apiClient.post("/newsMedia", data);
|
||||
const res = await apiClient.post('/newsMedia', data);
|
||||
return res.data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user