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
✨feature: print all routes message when server starts #1677
Conversation
I think you can add "-"s after the table head. It would be great |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the isChild check for our prefork mode
https://github.com/gofiber/fiber/blob/master/app.go#L1001
Please add a part for the doc repository https://github.com/gofiber/docs/blob/master/api/fiber.md#config |
Ok,I will fix them tomorrow. |
Thanks for your review. I finish them @ReneWerner87 |
@@ -737,6 +751,10 @@ func (app *App) Listen(addr string) error { | |||
if !app.config.DisableStartupMessage { | |||
app.startupMessage(ln.Addr().String(), false, "") | |||
} | |||
// Print routes | |||
if app.config.EnablePrintRoutes { | |||
app.printRoutesMessage() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget the Listener and ListenTLS method.
Closes #1675
It will print something like this: