mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-03-01 15:20:11 +08:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
|
export const paths = {
|
||
|
HOME: "/",
|
||
|
SETTINGS: "/settings",
|
||
|
CRON: "/cron",
|
||
|
QUEUE_DETAILS: "/queues/:qname",
|
||
|
};
|
||
|
|
||
|
export function queueDetailsPath(qname: string, taskStatus?: string): string {
|
||
|
const path = paths.QUEUE_DETAILS.replace(":qname", qname);
|
||
|
if (taskStatus) {
|
||
|
return `${path}?status=${taskStatus}`;
|
||
|
}
|
||
|
return path;
|
||
|
}
|