database driven image uploader and storage service model
This commit is contained in:
1 parent
76894061c5
commit
3b61a131c1
31 files changed
+433
-149
No files matched your search
@@ -60,7 +60,7 @@ export class StationConfigService {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const response = await firstValueFrom(
|
||||
this.http.post<{ url: string }>(`${this.baseUrl}/upload`, formData),
|
||||
this.http.post<{ url: string }>(`${getAppConfig().apiBaseUrl}/api/storage/upload`, formData),
|
||||
);
|
||||
return response.url;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user