-
-
Notifications
You must be signed in to change notification settings - Fork 68
Add carbon.txt lookup endpoint #273
Copy link
Copy link
Open
Labels
confirmedSpecced out and funded things that we are committing to releaseSpecced out and funded things that we are committing to releaseroadmap
Milestone
Metadata
Metadata
Assignees
Labels
confirmedSpecced out and funded things that we are committing to releaseSpecced out and funded things that we are committing to releaseroadmap
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
Add the ability for users to provide a single domain and check for a carbon.txt file present for that domain.
Describe the solution you'd like
This would be similar to the
hosting.check()functionality, however would not (currently) permit multiple domains to be checked at once (by using an array). This would use thehttps://carbon-txt-api.greenweb.org/api/validate/domain/endpoint.Describe alternatives you've considered
Users can use a fetch request to lookup a domain using the endpoint above. This does not require CO2.js. The purpose to building this into CO2.js is to make it a bit easier.