```
refactor getImageUrlFromFile to use Pocketbase records and correct path in teachers routes ```
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
export default function getImageUrlFromFile(collectionId: string, id: string, catImage: string): string {
|
||||
return `http://127.0.0.1:8090/api/files/${collectionId}/${id}/${catImage}`;
|
||||
//
|
||||
// PURPOSE:
|
||||
// get file url from pocketbase record
|
||||
//
|
||||
|
||||
export default function getImageUrlFromFile(collectionId: string, id: string, imgFile: string): string {
|
||||
return `http://127.0.0.1:8090/api/files/${collectionId}/${id}/${imgFile}`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user