mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
Added customCheck. Bug corrections. Cleanup.
This commit is contained in:
parent
c1c0032eb1
commit
35031898d5
2 changed files with 18 additions and 12 deletions
|
|
@ -15,12 +15,12 @@ export default {
|
|||
id : 'homepage', // optional
|
||||
name : 'Homepage',
|
||||
url : 'https://www.google.com',
|
||||
request : {
|
||||
request : { // fetch options
|
||||
method: 'GET',
|
||||
},
|
||||
mustFind : 'Feeling Lucky', // String | Regex | Function | AsyncFunction
|
||||
mustNotFind : /not found/i,
|
||||
followRedirects : true,
|
||||
mustNotFind : /Page not found/i,
|
||||
customCheck : (content, response)=>{return true;},
|
||||
validStatus : [200],
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue