mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add health checks to content-fetch
This commit is contained in:
parent
e0ce598be5
commit
856a7bc5ef
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ if (!process.env.VERIFICATION_TOKEN) {
|
|||
throw new Error('VERIFICATION_TOKEN environment variable is not set')
|
||||
}
|
||||
|
||||
app.get('/_ah/health', (req, res) => res.sendStatus(200))
|
||||
|
||||
app.all('/', (req, res, next) => {
|
||||
if (req.method !== 'GET' && req.method !== 'POST') {
|
||||
console.error('request method is not GET or POST')
|
||||
|
|
|
|||
Loading…
Reference in a new issue