mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #2471] Incorrect API paths in web API router #1704
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#1704
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @da-the-dev on GitHub (Aug 11, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2471
Describe the bug
The API path for getting inbounds is
<panel_uri_path/panel/api/inbounds/listExpected behavior
The API path for getting inbounds should be
<panel_uri_path/api/inbounds/listScreenshots
Non-applicable
Version (please complete the following information):
Additional context
I was looking for way to automate client creation and found a section in README about the API. I tested a couple of routes from the docs, and I have found out that they are a bit outdated. It seems that API routers in
web/api.gouse/panelin the beginning of their URIs. So in the end we end up with<panel_uri_path/panel/api/inbounds/listinstead of<panel_uri_path/api/inbounds/list.Checkout
web/api.goline 22, this is the line that I think is responsible of the bug@da-the-dev commented on GitHub (Aug 11, 2024):
Ok, this behavior is documented in the README, so I suppose this is intended, not a bug