pagination / category / sort
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user