mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-25 10:05:21 +08:00
Hosts already had one saved order on the Hosts page, but subscriptions honoured it only inside each inbound, so a host of a later inbound could never come before one of an earlier inbound (#6894). A new opt-in setting makes raw/base64, Clash/Mihomo and JSON subscriptions follow the Hosts page order across inbounds; the default keeps today's inbound-first output unchanged. The Hosts table gains drag-and-drop reordering next to the Up/Down buttons, on a pointer-reorder hook the Routing Rules table now shares.
92 lines
4.7 KiB
Plaintext
92 lines
4.7 KiB
Plaintext
---
|
||
title: Hosts
|
||
description: Per-inbound override endpoints. Each enabled host renders one extra
|
||
subscription link/proxy with its own address/port/TLS, superseding the legacy
|
||
externalProxy array. All endpoints under /panel/api/hosts.
|
||
full: true
|
||
_openapi:
|
||
preload:
|
||
- ./public/openapi.json
|
||
toc:
|
||
- depth: 2
|
||
title: List every host across all inbounds, grouped by inbound then ordered by
|
||
sort order.
|
||
url: '#list-every-host-across-all-inbounds-grouped-by-inbound-then-ordered-by-sort-order'
|
||
- depth: 2
|
||
title: Fetch a single host group by Group ID.
|
||
url: '#fetch-a-single-host-group-by-group-id'
|
||
- depth: 2
|
||
title: Fetch one inbound's hosts, grouped by host group.
|
||
url: '#fetch-one-inbounds-hosts-grouped-by-host-group'
|
||
- depth: 2
|
||
title: Distinct, sorted set of tags used across all hosts.
|
||
url: '#distinct-sorted-set-of-tags-used-across-all-hosts'
|
||
- depth: 2
|
||
title: Create a host group on inbounds.
|
||
url: '#create-a-host-group-on-inbounds'
|
||
- depth: 2
|
||
title: Replace a host group’s content.
|
||
url: '#replace-a-host-groups-content'
|
||
- depth: 2
|
||
title: Delete a host group.
|
||
url: '#delete-a-host-group'
|
||
- depth: 2
|
||
title: Enable or disable a host group.
|
||
url: '#enable-or-disable-a-host-group'
|
||
- depth: 2
|
||
title: Set host group sort order by the position of each groupId in the array.
|
||
IDs must be unique and refer to existing groups; omitted groups follow
|
||
in their previous order.
|
||
url: '#set-host-group-sort-order-by-the-position-of-each-groupid-in-the-array-ids-must-be-unique-and-refer-to-existing-groups-omitted-groups-follow-in-their-previous-order'
|
||
- depth: 2
|
||
title: Add a host group to inbounds (same as /add).
|
||
url: '#add-a-host-group-to-inbounds-same-as-add'
|
||
- depth: 2
|
||
title: Enable or disable many host groups in one call.
|
||
url: '#enable-or-disable-many-host-groups-in-one-call'
|
||
- depth: 2
|
||
title: Delete many host groups in one call.
|
||
url: '#delete-many-host-groups-in-one-call'
|
||
structuredData:
|
||
headings:
|
||
- content: List every host across all inbounds, grouped by inbound then ordered by
|
||
sort order.
|
||
id: list-every-host-across-all-inbounds-grouped-by-inbound-then-ordered-by-sort-order
|
||
- content: Fetch a single host group by Group ID.
|
||
id: fetch-a-single-host-group-by-group-id
|
||
- content: Fetch one inbound's hosts, grouped by host group.
|
||
id: fetch-one-inbounds-hosts-grouped-by-host-group
|
||
- content: Distinct, sorted set of tags used across all hosts.
|
||
id: distinct-sorted-set-of-tags-used-across-all-hosts
|
||
- content: Create a host group on inbounds.
|
||
id: create-a-host-group-on-inbounds
|
||
- content: Replace a host group’s content.
|
||
id: replace-a-host-groups-content
|
||
- content: Delete a host group.
|
||
id: delete-a-host-group
|
||
- content: Enable or disable a host group.
|
||
id: enable-or-disable-a-host-group
|
||
- content: Set host group sort order by the position of each groupId in the array.
|
||
IDs must be unique and refer to existing groups; omitted groups follow
|
||
in their previous order.
|
||
id: set-host-group-sort-order-by-the-position-of-each-groupid-in-the-array-ids-must-be-unique-and-refer-to-existing-groups-omitted-groups-follow-in-their-previous-order
|
||
- content: Add a host group to inbounds (same as /add).
|
||
id: add-a-host-group-to-inbounds-same-as-add
|
||
- content: Enable or disable many host groups in one call.
|
||
id: enable-or-disable-many-host-groups-in-one-call
|
||
- content: Delete many host groups in one call.
|
||
id: delete-many-host-groups-in-one-call
|
||
contents: []
|
||
---
|
||
|
||
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
|
||
|
||
export default function Layout(props) {
|
||
const { OpenAPIPage } = props.components ?? {};
|
||
return (
|
||
<>
|
||
{props.children}
|
||
<OpenAPIPage document="./public/openapi.json" webhooks={[]} operations={[{"path":"/panel/api/hosts/list","method":"get"},{"path":"/panel/api/hosts/get/{groupId}","method":"get"},{"path":"/panel/api/hosts/byInbound/{inboundId}","method":"get"},{"path":"/panel/api/hosts/tags","method":"get"},{"path":"/panel/api/hosts/add","method":"post"},{"path":"/panel/api/hosts/update/{groupId}","method":"post"},{"path":"/panel/api/hosts/del/{groupId}","method":"post"},{"path":"/panel/api/hosts/setEnable/{groupId}","method":"post"},{"path":"/panel/api/hosts/reorder","method":"post"},{"path":"/panel/api/hosts/bulk/add","method":"post"},{"path":"/panel/api/hosts/bulk/setEnable","method":"post"},{"path":"/panel/api/hosts/bulk/del","method":"post"}]} showTitle />
|
||
</>
|
||
);
|
||
} |