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