pagination / category / sort

This commit is contained in:
HAM!DREZA
2024-06-01 23:02:18 +03:30
parent 2242ed022f
commit 69ad899b35
11 changed files with 520 additions and 378 deletions
+15
View File
@@ -0,0 +1,15 @@
export default defineEventHandler(async (event) => {
const { public: { apiBase } } = useRuntimeConfig();
try {
const categoryLis = await $fetch(`${apiBase}/courseCategory`, {
method: 'GET',
headers: {
'Accept': 'application/json',
}
});
return categoryLis;
} catch (error) {
return error;
}
})