/** * functions and constants which helps to build * nextjs or react router dom navigation operations * for an entity. */ export const LicenseNavigationTools = { edit(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/license/edit/${uniqueId}`; }, create(locale?: string) { return `${locale ? "/" + locale : ""}/license/new`; }, single(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/license/${uniqueId}`; }, query(params: any = {}, locale?: string) { return `${locale ? "/" + locale : ""}/licenses`; }, /** * Use R series while building router in CRA or nextjs, or react navigation for react Native * Might be useful in Angular as well. **/ Redit: "license/edit/:uniqueId", Rcreate: "license/new", Rsingle: "license/:uniqueId", Rquery: "licenses", };