12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
import { strapi } from '@strapi/client'
|
|
|
|
export const strapiClient = strapi({
|
|
baseURL: 'https://cms.takerofnotes.com/api',
|
|
auth: import.meta.env.VITE_STRAPI_API_TOKEN,
|
|
})
|
|
|
|
export const getGlobal = async () => {
|
|
const globalManager = strapiClient.single('global')
|
|
return await globalManager.find()
|
|
}
|