Skip to content

Commit

Permalink
feat: add health
Browse files Browse the repository at this point in the history
  • Loading branch information
ynwd committed Nov 30, 2024
1 parent 08595aa commit de67fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/index/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { handler } from "@app/modules/index/index.handler.ts";

export default function (s: Fastro) {
s.get("/health", (req) => {
console.log(req.url);
console.log(`${Deno.hostname()}:`, req.url);
return Response.json({ message: "ok" });
});
s.page("/", {
Expand Down

0 comments on commit de67fa3

Please sign in to comment.