Skip to content

Commit

Permalink
Merge pull request #14 from voxoco/health-endpoint
Browse files Browse the repository at this point in the history
add health endpoint
  • Loading branch information
jmordica committed Jan 24, 2023
2 parents 117200b + 5b4a45a commit dcf3b0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ export class Nqlite {
http() {
const api = new Hono();

// GET /health
api.get("/health", (c: Context): Response => {
return c.json({ status: "ok" });
});

// GET /db/query
api.get("/db/query", (c: Context): Response => {
const res: Res = { results: [{}], time: 0 };
Expand Down

0 comments on commit dcf3b0a

Please sign in to comment.