Browse Source

refactor(nc-gui): use global api instance in middleware

pull/3801/head
braks 2 years ago
parent
commit
ea2121fe8b
  1. 2
      packages/nc-gui/middleware/auth.global.ts

2
packages/nc-gui/middleware/auth.global.ts

@ -32,7 +32,7 @@ import { useApi, useGlobal, useRoles } from '#imports'
export default defineNuxtRouteMiddleware(async (to, from) => {
const state = useGlobal()
const { api } = useApi()
const { api } = useApi({ useGlobalInstance: true })
const { allRoles } = useRoles()

Loading…
Cancel
Save