mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-09-21 06:54:45 +02:00
17 lines
299 B
TypeScript
17 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,
|
||
|
},
|
||
|
}
|
||
|
})
|