refactor: remove pocketbase (#1138)

This commit is contained in:
Jonas Plum
2025-09-02 21:58:08 +02:00
committed by GitHub
parent f28c238135
commit eba2615ec0
435 changed files with 42677 additions and 4730 deletions

16
ui/src/api.ts Normal file
View File

@@ -0,0 +1,16 @@
import { Configuration, DefaultApi } from '@/client'
import { useAuthStore } from '@/store/auth'
export function useAPI() {
const authStore = useAuthStore()
return new DefaultApi(
new Configuration({
basePath: 'http://localhost:8090/api',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: `Bearer ${authStore.token}`
}
})
)
}