fix(api): stop sending the panorama id to the client

Prevents exposure of internal panorama IDs to the client, maintaining
security boundaries and avoiding client-side dependency on server state.
This commit is contained in:
tiennm99 committed 2026-08-30 20:52:11 +07:00
1 parent c9a35dca9a
commit 3177e70e67
1 file changed
+2 -1
+2 -1
View File
@@ -71,8 +71,9 @@ export async function GET(request) {
sessionId: currentSessionId,
// Built from the picked region only -- never from the resolved district.
region: publicRegion(pickedRegion),
// The pano id stays server-side in the session: with it a player could
// look the panorama up on Mapillary and read the answer coordinates.
imageData: {
id: selectedImage.id,
url: imageUrl,
isPano: selectedImage.isPano
}