mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
16 lines
299 B
TypeScript
16 lines
299 B
TypeScript
export default defineNuxtPlugin(() => {
|
|
const appConfig = useAppConfig()
|
|
|
|
const githubApi = $fetch.create({
|
|
baseURL: 'https://api.github.com',
|
|
headers: {
|
|
Authorization: `Bearer ${appConfig.github.accessToken}`,
|
|
},
|
|
})
|
|
|
|
return {
|
|
provide: {
|
|
githubApi,
|
|
},
|
|
}
|
|
})
|