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

Use go-chi for handling routes #11

Merged
merged 21 commits into from
Dec 26, 2021
Merged

Use go-chi for handling routes #11

merged 21 commits into from
Dec 26, 2021

Conversation

daltonfury42
Copy link
Contributor

I was trying out https://github.com/go-chi/chi for route management, and got impressed by it.

It has got some good middlewares built in, that handles logging and timeouts.


listenAddr := ":8080"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Moved variable down to be closer to where it's required.

@aneeshsharma
Copy link
Contributor

This looks good. Specially later when we add authentication and ownership, we will have to use middlewares.

@daltonfury42
Copy link
Contributor Author

This looks good. Specially later when we add authentication and ownership, we will have to use middlewares.

True.

@daltonfury42 daltonfury42 changed the base branch from queue-create to main December 26, 2021 05:08
@daltonfury42 daltonfury42 merged commit af4f3c7 into main Dec 26, 2021
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.

3 participants