This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { RestaurantsListResponse } from "@/app/types/Types";
|
||||
import { api } from "@/config/axios";
|
||||
|
||||
export const getAllRestaurants = async (): Promise<RestaurantsListResponse> => {
|
||||
const { data } = await api.get("/public/restaurants");
|
||||
return data;
|
||||
};
|
||||
Reference in New Issue
Block a user