remove old client

This commit is contained in:
June 2025-08-16 13:10:25 +12:00
parent 914633a793
commit 592d55dcb6
Signed by: breadone
GPG Key ID: FDC19FE143200483

View File

@ -7,17 +7,6 @@ import {
Collection Collection
} from './schema' } from './schema'
const raw_client = new Pocketbase("http://localhost:4321")
raw_client.autoCancellation(false)
// Return a relative url for file instead of full path including localhost, which breaks external access
raw_client.files.getRelativeURL = (record: { [key: string]: any; }, filename: string, queryParams?: FileOptions | undefined) => {
const res = raw_client.files.getURL(record, filename)
return res.substring(21)
}
export { raw_client };
class APIClient { class APIClient {
client: Pocketbase client: Pocketbase