mirror of
https://github.com/remnawave/backend.git
synced 2026-08-04 14:48:33 +00:00
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
26 lines
633 B
TypeScript
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;
|