mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-28 06:47:25 +00:00
17 lines
611 B
TypeScript
17 lines
611 B
TypeScript
import type { Path } from '@rocket.chat/rest-typings';
|
|
|
|
export const APP_URL = 'https://github.com/RocketChat/Apps.RocketChat.Tester/raw/master/dist/appsrocketchattester_0.3.0.zip?raw=true';
|
|
export const APP_NAME = 'Apps.RocketChat.Tester';
|
|
|
|
type PathWithoutPrefix<TPath> = TPath extends `/apps${infer U}` ? U : never;
|
|
|
|
export function apps(path?: ''): `/api/apps`;
|
|
export function apps<TPath extends PathWithoutPrefix<Path>>(path: TPath): `/api/apps${TPath}`;
|
|
export function apps(path = '') {
|
|
return `/api/apps${path}` as const;
|
|
}
|
|
|
|
export function installedApps() {
|
|
return `/api/apps/installed` as const;
|
|
}
|