This introduces a MapLibre GL + Three.js web demo for object placement and sharing, and changes asset upload flow to use backend upload endpoints so clients no longer receive direct MinIO URLs. Made-with: Cursor
This commit is contained in:
@@ -265,10 +265,14 @@ export class GeoApiClient {
|
||||
assetId: string,
|
||||
contentType?: string
|
||||
): Promise<{ url: string; method: string }> {
|
||||
return this.request(`/v1/assets/${assetId}/signed-upload`, {
|
||||
const response = await this.request<{ url: string; method: string }>(`/v1/assets/${assetId}/signed-upload`, {
|
||||
method: "POST",
|
||||
body: { contentType: contentType ?? "application/octet-stream" },
|
||||
});
|
||||
if (response.url.startsWith("/")) {
|
||||
response.url = this.resolveRelativeLink(response.url);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/** Update asset visibility (owner only). */
|
||||
|
||||
Reference in New Issue
Block a user