Remnawave_backend/libs/contract/api/controllers/hosts.ts
kastov 29da6af545
Some checks failed
Build Dev / Send TG message (push) Waiting to run
Build Dev / build-docker-image (push) Waiting to run
Build Dev / Send TG message-1 (push) Blocked by required conditions
Build Dev / notify-on-error (push) Blocked by required conditions
Deploy backend contracts / build (push) Has been cancelled
Deploy backend contracts / Send Telegram message (push) Has been cancelled
Deploy backend contracts / notify-on-error (push) Has been cancelled
refactor: host commands to replace set-inbound and set-port with update functionality
2026-06-05 22:42:40 +03:00

26 lines
633 B
TypeScript

export const HOSTS_CONTROLLER = 'hosts' as const;
export const HOST_ACTIONS_ROUTE = 'actions' as const;
export const HOSTS_ROUTES = {
CREATE: '', // create
UPDATE: '', // update host
GET: '', // get all hosts
GET_BY_UUID: (uuid: string) => `${uuid}`, // get by UUID
DELETE: (uuid: string) => `${uuid}`, // delete by UUID
ACTIONS: {
REORDER: `${HOST_ACTIONS_ROUTE}/reorder`,
},
BULK: {
ENABLE_HOSTS: 'bulk/enable',
DISABLE_HOSTS: 'bulk/disable',
DELETE_HOSTS: 'bulk/delete',
UPDATE: 'bulk/update',
},
TAGS: {
GET: 'tags',
},
} as const;