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

[Question]: How could i add a basepath for the root group #620

Closed
rogerogers opened this issue Feb 19, 2023 · 1 comment
Closed

[Question]: How could i add a basepath for the root group #620

rogerogers opened this issue Feb 19, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@rogerogers
Copy link
Contributor

rogerogers commented Feb 19, 2023

Describe the Question

  • How could I add a basepath for the root group when using hz tool auto-generate router
  • Seems the package name of the routers is UpperCamelCase, is that how it's defined?
    A clear and concise description of what the question is.

Reproducible Code

Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.

Expected behavior
The root group with a basepath like /api, /v1...

A clear and concise description of what you expected to happen.

Screenshots
image

If applicable, add screenshots to help explain your question.

Hertz version:

Please provide the version of Hertz you are using.

Environment:

The output of go env.

Additional context

Add any other context about the question here.

@FGYFFFF
Copy link
Contributor

FGYFFFF commented Feb 20, 2023

  1. root group "/" is generated by default
  2. "UpperCamelCase" has optimized in optimize(hz): package name #611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants