Skip to content

Commit

Permalink
Serve route snapper files through the GAE proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 23, 2024
1 parent 0e45e4f commit 96fe931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let expectedAudience = `/projects/${process.env.PROJECT_NUMBER}/apps/${process.e

let app = express();

if(process.env.USE_IAP !== "false") {
if (process.env.USE_IAP !== "false") {
app.use(checkIap);
}

Expand Down Expand Up @@ -49,6 +49,9 @@ app.get("/data/*", async (req, resp) => {
} else if (path.endsWith(".geojson.gz")) {
resp.type("application/geo+json");
resp.append("Content-Encoding", "gzip");
} else if (path.endsWith(".bin.gz")) {
resp.type("application/octet-stream");
resp.append("Content-Encoding", "gzip");
}

// Return the whole file?
Expand Down

0 comments on commit 96fe931

Please sign in to comment.