Added Polls Page

This commit is contained in:
Manik Maity
2024-11-13 15:05:07 +05:30
parent e007f18bb5
commit b3525c16dc
6 changed files with 109 additions and 19 deletions

View File

@@ -0,0 +1,8 @@
import axiosInstance from "../helper/axiosInstance";
async function getPollsService(page = 1, limit = 10) {
const response = await axiosInstance.get(`poll/all?page=${page}&limit=${limit}`);
return response.data;
}
export default getPollsService;