This commit is contained in:
2023-06-12 12:35:59 +08:00
parent f16264dfbc
commit 23eb6ca71c
10 changed files with 269 additions and 13 deletions

10
routes/api/deploy_id.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Handlers } from "$fresh/server.ts";
export const handler: Handlers = {
GET(_req, _ctx) {
const data = { id: Deno.env.get("DENO_DEPLOYMENT_ID") };
return new Response(JSON.stringify(data), {
headers: { "Content-Type": "application/json" },
});
},
};