You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
569 B

export interface RouteParams {
deviceId: string;
programId: string;
}
export const routerRouteParams: RouteParams = {
deviceId: ":deviceId",
programId: ":programId"
};
export const home = "/";
export const messagesTest = "/messagesTest";
export const login = "/login";
export const logout = "/logout";
export function device(deviceId?: string | number): string {
return `/devices/${deviceId || ""}`;
}
export function program(
deviceId: string | number,
programId?: string | number
): string {
return `${device(deviceId)}/programs/${programId}`;
}