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

fix: change the /version to /apisix/admin/tool/version #1429

Merged
merged 3 commits into from
Feb 5, 2021

Conversation

starsz
Copy link
Contributor

@starsz starsz commented Feb 4, 2021

Please answer these questions before submitting a pull request

  • Why submit this pull request?

  • Bugfix

  • New feature provided

  • Improve performance

  • Backport patches

  • Related issues

#1408 (comment)

New feature or improvement

  • Describe the details and related test reports.

change the /version to /apisix/admin/tool/version

@juzhiyuan
Copy link
Member

ping @tokers @imjoey 's help to review codes.


if !strings.HasPrefix(req.URL.Path, "/apisix") {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about swapping these two if block? URI without /apisix can be judged firstly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good capture. I will do this in another PR.

@starsz starsz merged commit 61d8118 into apache:master Feb 5, 2021
@starsz starsz deleted the fix_version_api branch February 5, 2021 04:43
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.

4 participants