remove old client
This commit is contained in:
parent
914633a793
commit
592d55dcb6
@ -7,17 +7,6 @@ import {
|
||||
Collection
|
||||
} 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 {
|
||||
client: Pocketbase
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user