cdnjs / api-server

📡 API server for api.cdnjs.com - The #1 free and open source CDN built to make life easier for developers.
https://api.cdnjs.com
MIT License
89 stars 38 forks source link

Add dedicated health route to API #74

Closed MattIPv4 closed 2 years ago

MattIPv4 commented 2 years ago

Type of Change

What issue does this relate to?

N/A

What should this PR do?

Introduces a new health route that always returns a 200 OK message with no caching.

What are the acceptance criteria?

Requests to /health receive a 200 response code and an OK message, with headers to ensure this response is not cached.