mirror of
https://github.com/rustfs/console.git
synced 2026-09-19 01:47:44 +08:00
9 lines
306 B
TypeScript
9 lines
306 B
TypeScript
export type BucketModuleRoute = "/events" | "/lifecycle" | "/replication"
|
|
|
|
export function buildModuleBucketPath(route: BucketModuleRoute, bucketName: string): string {
|
|
if (!bucketName) return route
|
|
|
|
const params = new URLSearchParams({ bucket: bucketName })
|
|
return `${route}?${params.toString()}`
|
|
}
|