Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health check route to API #21

Closed
scriptnull opened this issue Aug 6, 2017 · 1 comment
Closed

Add health check route to API #21

scriptnull opened this issue Aug 6, 2017 · 1 comment

Comments

@scriptnull
Copy link
Owner

We need this to check if API is alive

Just create a new route GET / and return the following payload

{
   "app": "badgeit-api",
   "version": "experimental"
}
@scriptnull
Copy link
Owner Author

Example of writing a new route in code can be found from https://github.com/scriptnull/badgeit/blob/master/api/main.go#L71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant