mirror of
https://github.com/remnawave/backend.git
synced 2026-08-04 14:48:33 +00:00
25 lines
725 B
TypeScript
25 lines
725 B
TypeScript
export const NODE_PLUGINS_CONTROLLER = 'node-plugins' as const;
|
|
|
|
const ACTIONS_ROUTE = 'actions' as const;
|
|
const TORRENT_BLOCKER_ROUTE = 'torrent-blocker' as const;
|
|
|
|
export const NODE_PLUGINS_ROUTES = {
|
|
GET_ALL: '', // get
|
|
GET: (uuid: string) => `${uuid}`, // get
|
|
UPDATE: '', // patch
|
|
DELETE: (uuid: string) => `${uuid}`, // delete
|
|
CREATE: '', // post,
|
|
|
|
ACTIONS: {
|
|
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
CLONE: `${ACTIONS_ROUTE}/clone`,
|
|
},
|
|
|
|
EXECUTOR: 'executor',
|
|
|
|
TORRENT_BLOCKER: {
|
|
GET_REPORTS: `${TORRENT_BLOCKER_ROUTE}`,
|
|
GET_REPORTS_STATS: `${TORRENT_BLOCKER_ROUTE}/stats`,
|
|
TRUNCATE_REPORTS: `${TORRENT_BLOCKER_ROUTE}/truncate`,
|
|
},
|
|
} as const;
|