add strapi
This commit is contained in:
7
pages/index/+data.js
Normal file
7
pages/index/+data.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getGlobal } from '@/libs/strapi'
|
||||
|
||||
export const data = async () => {
|
||||
const global = await getGlobal()
|
||||
|
||||
return { global: global.data }
|
||||
}
|
||||
Reference in New Issue
Block a user