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

Removing api router scope #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

taciomedeiros
Copy link
Member

Description

  • Removing api router scope from framework (that should be a developer decision when using the framework)

Other changes (e.g. bug fixes, UI tweaks, refactors)

  • Expose the old check route as healthcheck in the main scope router
  • Adding a process time in the response of healthcheck route

Related Tickets

#31

@rlrezende
Copy link
Contributor

É necessário modificar incrementar uma nova versão no package.json
@taciomedeiros

return res
.status(200)
.json({ message: `Hello, I'm attiv and I'm here to help you develop software faster, robust and secure.` });
.json({ message: `Hello, I'm attiv and i'm here to help you develop software faster, robust and secure. The process is running for ${Math.floor(process.uptime()) / 60} minutes` });
Copy link
Member

Choose a reason for hiding this comment

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

There's another "I'm" that can be replaced by "i'm".
Another suggestion is keep uptime in seconds.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not better keep it in minutes? Why do you prefer in seconds?

I think the number in seconds will be too big if all the things are running ok, making dificult to human readability

Copy link
Member

Choose a reason for hiding this comment

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

I think is more common. With minutes we have the same problem when it's running for a long time, I think. Maybe add the startup time helps 🤔

@taciomedeiros taciomedeiros self-assigned this Oct 27, 2019
@taciomedeiros taciomedeiros added the bug Something isn't working label Oct 27, 2019
@taciomedeiros
Copy link
Member Author

@beeblebrox3 eu alterei conforme requisitado!

@taciomedeiros
Copy link
Member Author

@rlrezende @beeblebrox3 O que precisamos para mesclar este?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants