mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
cloudflare: clean up exports, correct status code
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
|||||||
TileType,
|
TileType,
|
||||||
} from "../../../js";
|
} from "../../../js";
|
||||||
|
|
||||||
export interface Env {
|
interface Env {
|
||||||
BUCKET: R2Bucket;
|
BUCKET: R2Bucket;
|
||||||
PMTILES_PATH?: string;
|
PMTILES_PATH?: string;
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ export const pmtiles_path = (p: string | undefined, name: string): string => {
|
|||||||
|
|
||||||
const CACHE = new ResolvedValueCache();
|
const CACHE = new ResolvedValueCache();
|
||||||
|
|
||||||
export class R2Source implements Source {
|
class R2Source implements Source {
|
||||||
env: Env;
|
env: Env;
|
||||||
archive_name: string;
|
archive_name: string;
|
||||||
|
|
||||||
@@ -135,6 +135,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: metadata responses
|
// TODO: metadata responses
|
||||||
return new Response("Invalid URL", { status: 400 });
|
return new Response("Invalid URL", { status: 404 });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user