Skip to content

Conversation

@thatonecodes
Copy link
Contributor

Closes #14.
This implementation is open to any changes, this just seemed like the easiest way to go about things.

Summary

  • Added a new /stream/hit endpoint that increments the counter before streaming data
  • Updated docs/index.html to include the new endpoint information and a basic example
  • Added test coverage for /stream/hit in stream_test.go
  • Registered the route in main.go, and handled logic in routes.go

- Added a new `/stream/hit` endpoint that increments the counter before
  streaming data
- Updated `docs/index.html` to include the new endpoint information and
  a basic example
- Added test coverage for `/stream/hit` in `stream_test.go`
- Registered the route in `main.go`, and handled logic in `routes.go`
@JasonLovesDoggo
Copy link
Owner

Sorry that I never commented. My only real concern is the amount of code duplication here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for an endpoint that streams AND increments.

2 participants