initiation librodrome
This commit is contained in:
5
app/composables/usePageContent.ts
Normal file
5
app/composables/usePageContent.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function usePageContent<T = Record<string, unknown>>(name: string) {
|
||||
return useAsyncData<T>(`page-${name}`, () =>
|
||||
$fetch(`/api/content/pages/${name}`),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user