Add docker file

This commit is contained in:
2024-01-21 11:30:02 +08:00
parent c0d86d3da5
commit b8b1192d88
8 changed files with 133 additions and 35 deletions

View File

@@ -19,6 +19,7 @@ function handle_auth(req: Request, ctx: MiddlewareHandlerContext) {
const check = () => {
if (u.pathname === "/api/token" && req.method === "PUT") return true;
if (u.pathname === "/api/status" && req.method === "GET") return true;
if (u.pathname === "/api/health_check" && req.method === "GET") return true;
return false;
};
if (!token) return check();

View File

@@ -0,0 +1,7 @@
import { Handlers } from "$fresh/server.ts";
export const handler: Handlers = {
GET(_req, _ctx) {
return new Response("OK");
},
};