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