-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report errors to a dedicated telegram chat
- Loading branch information
Showing
5 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
BOT_TOKEN= | ||
SUPABASE_KEY= | ||
SUPABASE_URL= | ||
BOT_ERROR_REPORTING_TOKEN= | ||
BOT_ERROR_REPORTING_USER_ID= | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { createJsonResponse } from "./lib/json-response/create-json-response.ts"; | ||
import { handleError } from "./lib/handle-error/handle-error.ts"; | ||
|
||
export type HealthResponse = { status: "ok" }; | ||
|
||
// An endpoint to check if API is up and running | ||
export const onRequest: PagesFunction = () => { | ||
export const onRequest = handleError(async () => { | ||
return createJsonResponse<HealthResponse>({ status: "ok" }); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters