fix: convert apps/website from submodule to regular directory
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export default defineEventHandler((event) => {
|
||||
const config = useRuntimeConfig();
|
||||
const id = getRouterParam(event, 'id');
|
||||
|
||||
if (!id) {
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
message: 'Good ID is required',
|
||||
});
|
||||
}
|
||||
|
||||
return $fetch(`${config.public.backendUrl}/public/goods/${id}`);
|
||||
});
|
||||
Reference in New Issue
Block a user