An open API service indexing awesome lists of open source software.

https://github.com/scbd/serverless-is-url

service to test for valid and live url
https://github.com/scbd/serverless-is-url

Last synced: 2 months ago
JSON representation

service to test for valid and live url

Awesome Lists containing this project

README

          

Secretariat of the Convention on Biological DiversitySecretariat of the Convention on Biological Diversity


IS-URL Service


test a url if valid and live returning true or false

```js
export const testUri = async(url) => {
const service = 'https://injo3jyxlb.execute-api.us-east-1.amazonaws.com/stg/test'
const headers = { headers: { Authorization: `Bearer ${process.env.TOKEN}` } }
const body = { url }

const { data } = await axios.post(service, body, headers)

return data // true || false
}
```